Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 7b82481

Browse files
author
Hendrik van Antwerpen
committed
Break long annotations over multiple lines
1 parent 21a916a commit 7b82481

File tree

1 file changed

+13
-2
lines changed
  • tree-sitter-stack-graphs/src/cli

1 file changed

+13
-2
lines changed

tree-sitter-stack-graphs/src/cli/test.rs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,13 @@ impl OutputMode {
7171
"#)]
7272
pub struct TestArgs {
7373
/// Test file or directory paths.
74-
#[clap(value_name = "TEST_PATH", required = true, value_hint = ValueHint::AnyPath, parse(from_os_str), validator_os = path_exists)]
74+
#[clap(
75+
value_name = "TEST_PATH",
76+
required = true,
77+
value_hint = ValueHint::AnyPath,
78+
parse(from_os_str),
79+
validator_os = path_exists
80+
)]
7581
pub test_paths: Vec<PathBuf>,
7682

7783
/// Hide passing tests.
@@ -129,7 +135,12 @@ pub struct TestArgs {
129135
pub save_visualization: Option<PathSpec>,
130136

131137
/// Controls when graphs, paths, or visualization are saved.
132-
#[clap(long, arg_enum, default_value_t = OutputMode::OnFailure)]
138+
#[clap(
139+
long,
140+
arg_enum,
141+
default_value_t = OutputMode::OnFailure,
142+
require_equals = true,
143+
)]
133144
pub output_mode: OutputMode,
134145
}
135146

0 commit comments

Comments
 (0)