Lines Matching refs:name
86 /// Allows you to pull the name from your Cargo.toml at compile time.
88 /// **NOTE:** This macro extracts the name from an environment variable `CARGO_PKG_NAME`.
89 /// When the crate name is set to something different from the package name,
137 ($name:expr) => {{
138 let mut cmd = $crate::Command::new($name).version($crate::crate_version!());
161 ($name:expr) => {{
452 /// [explicit name] [short] [long] [value names] [...] [help string]
457 /// The name may be either a bare-word or a string, followed by a `:`, like `name:` or
458 /// `"name":`.
461 /// fields as the name using the following priority order:
481 /// **NOTE:** Dashes in the long name (e.g. `--foo-bar`) is not supported and quoting is required
527 ( $name:ident: $($tail:tt)+ ) => {{
528 let arg = $crate::Arg::new($crate::arg_impl! { @string $name });
539 debug_assert_ne!(arg.get_id(), "", "Without a value or long flag, the `name:` prefix is required");