-
Make sure you completed the following tasks
Codeuse clap::clap_app;
fn main() {
clap_app!(app =>
(@arg proxy: -p --proxy [PROXY] "Use the specified proxy.")
(@arg no_proxy: --no-proxy "Don't use a proxy.")
);
} Steps to reproduce the issueRun Version
Actual Behavior SummaryIt panics with Expected Behavior SummaryIt should run without panicking. Additional contextReplacing Debug outputNo output. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
This only happens with the clap_app macro, using |
Beta Was this translation helpful? Give feedback.
-
I found a workaround: By using stringify, the program works. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Can you please try it with master? You don't need Lines 385 to 401 in 3520a30 |
Beta Was this translation helpful? Give feedback.
-
Using master, it works when I do |
Beta Was this translation helpful? Give feedback.
-
Yup, that is the intention. There's no other workaround. |
Beta Was this translation helpful? Give feedback.
Using master, it works when I do
(@arg no_proxy --"no-proxy" /*...*/)
.