Commit 832e9fb
fix(cli): allow hyphen-prefixed values in prompt arguments
Fixes bounty issue #1513
The message and prompt arguments using trailing_var_arg were missing
the allow_hyphen_values attribute, causing clap to misinterpret prompts
starting with '-' (like '-hello') as flags instead of prompt text.1 parent 9859896 commit 832e9fb
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
0 commit comments