You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the following code and clap version 2.16.0
OS is Ubuntu 14.04
TERM=xterm-256color
externcrate clap;use clap::{App,Arg};fnmain(){let matches = App::new("MyApp").version("1.0").author("foo").about("bar").arg(Arg::with_name("some").help("some option").short("s").long("some").takes_value(true)).arg(Arg::with_name("other").help("some other option").short("o").long("other").takes_value(true)).arg(Arg::with_name("label").help("a label").short("l").long("label").multiple(true).takes_value(true)).get_matches();}
running clap-test --help yields
MyApp 1.0
foo
bar
USAGE:
clap-test [OPTIONS]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-l, --label <label> a label
-o, --other <other> some other option
-s, --some <some> some option
Note the missing padding before "a label"
Whereas removing the .multiple(true) yields
MyApp 1.0
foo
bar
USAGE:
clap-test [OPTIONS]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-l, --label <label> a label
-o, --other <other> some other option
-s, --some <some> some option
The text was updated successfully, but these errors were encountered:
Given the following code and clap version 2.16.0
OS is Ubuntu 14.04
TERM=xterm-256color
running
clap-test --help
yieldsNote the missing padding before "a label"
Whereas removing the
.multiple(true)
yieldsThe text was updated successfully, but these errors were encountered: