Lines Matching refs:new

4     clap::Command::new(name)
6 clap::Arg::new("config")
12 clap::Arg::new("v")
18 clap::Command::new("test").about("Subcommand").arg(
19 clap::Arg::new("debug")
27 clap::Command::new(name)
32 clap::Arg::new("file")
37 clap::Arg::new("config")
45 .arg(clap::Arg::new("choice").value_parser(["first", "second"]))
47 clap::Command::new("test").about("tests things").arg(
48 clap::Arg::new("case")
59 clap::Command::new("some_cmd")
62 clap::Arg::new("config")
69 .arg(clap::Arg::new("path").num_args(1..)),
71 .subcommand(clap::Command::new("some-cmd-with-hyphens").alias("hyphen"))
72 .subcommand(clap::Command::new("some-hidden-cmd").hide(true))
76 clap::Command::new(name)
79 clap::Arg::new("single-quotes")
85 clap::Arg::new("double-quotes")
91 clap::Arg::new("backticks")
97 clap::Arg::new("backslash")
103 clap::Arg::new("brackets")
109 clap::Arg::new("expansions")
115 clap::Command::new("cmd-single-quotes").about("Can be 'always', 'auto', or 'never'"),
116 clap::Command::new("cmd-double-quotes")
118 clap::Command::new("cmd-backticks").about("For more information see `echo test`"),
119 clap::Command::new("cmd-backslash").about("Avoid '\\n'"),
120 clap::Command::new("cmd-brackets").about("List packages [filter]"),
121 clap::Command::new("cmd-expansions").about("Execute the shell command with $SHELL"),
126 clap::Command::new(name)
130 clap::Arg::new("flag")
139 clap::Arg::new("option")
147 .arg(clap::Arg::new("positional"))
152 clap::Command::new("some_cmd")
156 clap::Command::new("sub_cmd").about("sub-subcommand").arg(
157 clap::Arg::new("config")
161 PossibleValue::new("Lest quotes, aren't escaped.")
163 PossibleValue::new("Second to trigger display of options"),
172 clap::Command::new(name)
174 clap::Arg::new("choice")
180 clap::Arg::new("unknown")
185 clap::Arg::new("other")
190 clap::Arg::new("path")
196 clap::Arg::new("file")
202 clap::Arg::new("dir")
208 clap::Arg::new("exe")
214 clap::Arg::new("cmd_name")
219 clap::Arg::new("cmd")
225 clap::Arg::new("command_with_args")
232 clap::Arg::new("user")
238 clap::Arg::new("host")
244 clap::Arg::new("url")
249 clap::Arg::new("email")
256 clap::Command::new(name).arg(
257 clap::Arg::new("arguments")
265 clap::Command::new(name)
267 clap::Arg::new("first")
272 clap::Arg::new("second")
287 snapbox::Assert::new()