From 4f5dcb4647affc5025f59089bcd63a990c6a8dcf Mon Sep 17 00:00:00 2001 From: erishforG Date: Sat, 19 Sep 2026 09:33:16 +0900 Subject: [PATCH] docs(cli): align smartlog help with shipped overlays Closes #447 Co-Authored-By: OpenAI Codex --- src/cli/mod.rs | 2 +- tests/cli_tests.rs | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/cli/mod.rs b/src/cli/mod.rs index 30f8fc5..c87b69e 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -543,7 +543,7 @@ pub enum Command { /// Visualize active worktrees as a commit DAG (alias: sl) /// /// Lists every active worktree, the commits it adds on top of its base - /// branch, and (in later releases) PR/CI/review state. Issue #245. + /// branch, and its GitHub PR/CI/review state when available. Issue #245. #[command(alias = "sl")] Smartlog { /// Maximum commits per worktree (default: 10) diff --git a/tests/cli_tests.rs b/tests/cli_tests.rs index 400d843..1d18922 100644 --- a/tests/cli_tests.rs +++ b/tests/cli_tests.rs @@ -1619,6 +1619,16 @@ fn test_history_log_export_empty() { // parsec smartlog / sl (issue #245, #305) // --------------------------------------------------------------------------- +#[test] +fn test_smartlog_help_describes_shipped_overlay() { + parsec() + .args(["smartlog", "--help"]) + .assert() + .success() + .stdout(predicate::str::contains("GitHub PR/CI/review state")) + .stdout(predicate::str::contains("in later releases").not()); +} + /// `parsec smartlog` in a repo with no active worktrees should exit 0 and /// print the "No active worktrees" placeholder message. #[test]