From 7ba7eaaf5eb498267c8aeec92613f8e9c6853132 Mon Sep 17 00:00:00 2001 From: Willem Duminy Date: Sun, 24 Nov 2024 09:23:45 +0200 Subject: [PATCH] Fix help smoke test --- tests/snapshots/general__help__smoke.snap | 3 ++- tests/snapshots/general__help__smoke.snap.new | 25 +++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 tests/snapshots/general__help__smoke.snap.new diff --git a/tests/snapshots/general__help__smoke.snap b/tests/snapshots/general__help__smoke.snap index f58cc75f..d8fcb590 100644 --- a/tests/snapshots/general__help__smoke.snap +++ b/tests/snapshots/general__help__smoke.snap @@ -19,4 +19,5 @@ Commands: help Print this message or the help of the given subcommand(s) Options: - -h, --help Print help + -h, --help Print help + -V, --version Print version \ No newline at end of file diff --git a/tests/snapshots/general__help__smoke.snap.new b/tests/snapshots/general__help__smoke.snap.new new file mode 100644 index 00000000..e119f74c --- /dev/null +++ b/tests/snapshots/general__help__smoke.snap.new @@ -0,0 +1,25 @@ +--- +source: tests/general.rs +assertion_line: 5 +expression: output +snapshot_kind: text +--- +COMMAND: +--help + +STDERR: + +STDOUT: +Visualize/analyze a crate's internal structure. + +Usage: cargo-modules + +Commands: + structure Prints a crate's hierarchical structure as a tree. + dependencies Prints a crate's internal dependencies as a graph. + orphans Detects unlinked source files within a crate's directory. + help Print this message or the help of the given subcommand(s) + +Options: + -h, --help Print help + -V, --version Print version