Skip to content

Commit 3cbce42

Browse files
committed
docs(cookbook): Make typed-derive easier to maintain
Mostly willing to do this because we don't show users `main.rs`
1 parent 9fd4dc9 commit 3cbce42

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/typed-derive/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ mod implicit;
88

99
#[derive(Parser, Debug)] // requires `derive` feature
1010
#[command(term_width = 0)] // Just to make testing across clap features easier
11+
#[command(bin_name = "typed-derive")] // Make testing easier by avoiding `.exe` in Usage on Windows
1112
enum Cli {
1213
Implicit(implicit::ImplicitParsers),
1314
Builtin(builtin::BuiltInParsers),

0 commit comments

Comments
 (0)