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")
68 .subcommand(clap::Command::new("some-cmd-with-hyphens").alias("hyphen"))
72 clap::Command::new(name)
75 clap::Arg::new("single-quotes")
81 clap::Arg::new("double-quotes")
87 clap::Arg::new("backticks")
93 clap::Arg::new("backslash")
99 clap::Arg::new("brackets")
105 clap::Arg::new("expansions")
111 clap::Command::new("cmd-single-quotes").about("Can be 'always', 'auto', or 'never'"),
112 clap::Command::new("cmd-double-quotes")
114 clap::Command::new("cmd-backticks").about("For more information see `echo test`"),
115 clap::Command::new("cmd-backslash").about("Avoid '\\n'"),
116 clap::Command::new("cmd-brackets").about("List packages [filter]"),
117 clap::Command::new("cmd-expansions").about("Execute the shell command with $SHELL"),
122 clap::Command::new(name)
126 clap::Arg::new("flag")
135 clap::Arg::new("option")
143 .arg(clap::Arg::new("positional"))
148 clap::Command::new("some_cmd")
151 clap::Command::new("sub_cmd").about("sub-subcommand").arg(
152 clap::Arg::new("config")
155 .value_parser([clap::builder::PossibleValue::new(
165 clap::Command::new(name)
167 clap::Arg::new("choice")
173 clap::Arg::new("unknown")
178 clap::Arg::new("other")
183 clap::Arg::new("path")
189 clap::Arg::new("file")
195 clap::Arg::new("dir")
201 clap::Arg::new("exe")
207 clap::Arg::new("cmd_name")
212 clap::Arg::new("cmd")
218 clap::Arg::new("command_with_args")
225 clap::Arg::new("user")
231 clap::Arg::new("host")
237 clap::Arg::new("url")
242 clap::Arg::new("email")
249 clap::Command::new(name)
251 clap::Arg::new("config")
256 clap::Arg::new("no-config")
264 clap::Command::new(name).arg(
265 clap::Arg::new("config")
277 clap_mangen::Man::new(cmd).render(&mut buf).unwrap();
279 snapbox::Assert::new()
285 clap::Command::new(name)
287 clap::Arg::new("choice")
293 clap::Arg::new("method")
297 PossibleValue::new("fast").help("use the Fast method"),
298 PossibleValue::new("slow").help("use the slow method"),
299 PossibleValue::new("normal")
305 clap::Arg::new("positional_choice")
309 PossibleValue::new("left").help("run left adjusted"),
310 PossibleValue::new("right"),
311 PossibleValue::new("center").hide(true),
317 clap::Command::new(name).arg(
318 clap::Arg::new("flag")