Skip to content

Commit 84378ab

Browse files
cairo_program_runner: add help strings in arg parser (#190)
1 parent 462aed9 commit 84378ab

File tree

1 file changed

+9
-3
lines changed
  • crates/cairo-program-runner/src/bin/cairo_program_runner

1 file changed

+9
-3
lines changed

crates/cairo-program-runner/src/bin/cairo_program_runner/main.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,18 @@ struct Args {
5252
trace_file: Option<PathBuf>,
5353
#[clap(long = "memory_file", help = "Path to the memory output file.")]
5454
memory_file: Option<PathBuf>,
55-
#[clap(long = "layout", default_value = LayoutName::plain.to_str(), value_enum)]
55+
#[clap(
56+
long = "layout",
57+
default_value = LayoutName::plain.to_str(),
58+
help = "Layout name.",
59+
value_enum
60+
)]
5661
layout: LayoutName,
57-
// Required when using with dynamic layout. Ignored otherwise.
5862
#[clap(
5963
long = "dynamic_params_file",
60-
required_if_eq("layout", LayoutName::dynamic.to_str())
64+
required_if_eq("layout", LayoutName::dynamic.to_str()),
65+
help = "Path to the dynamic layout parameters file. Required when using dynamic layout,
66+
ignored otherwise."
6167
)]
6268
dynamic_params_file: Option<PathBuf>,
6369
#[clap(

0 commit comments

Comments
 (0)