summaryrefslogtreecommitdiffstats
path: root/vendor/clap/examples/derive_ref
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:20:39 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:20:39 +0000
commit1376c5a617be5c25655d0d7cb63e3beaa5a6e026 (patch)
tree3bb8d61aee02bc7a15eab3f36e3b921afc2075d0 /vendor/clap/examples/derive_ref
parentReleasing progress-linux version 1.69.0+dfsg1-1~progress7.99u1. (diff)
downloadrustc-1376c5a617be5c25655d0d7cb63e3beaa5a6e026.tar.xz
rustc-1376c5a617be5c25655d0d7cb63e3beaa5a6e026.zip
Merging upstream version 1.70.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/clap/examples/derive_ref')
-rw-r--r--vendor/clap/examples/derive_ref/augment_args.rs2
-rw-r--r--vendor/clap/examples/derive_ref/augment_subcommands.rs2
-rw-r--r--vendor/clap/examples/derive_ref/flatten_hand_args.rs2
-rw-r--r--vendor/clap/examples/derive_ref/hand_subcommand.rs4
-rw-r--r--vendor/clap/examples/derive_ref/interop_tests.md2
5 files changed, 6 insertions, 6 deletions
diff --git a/vendor/clap/examples/derive_ref/augment_args.rs b/vendor/clap/examples/derive_ref/augment_args.rs
index 458beb44c..39d837cfa 100644
--- a/vendor/clap/examples/derive_ref/augment_args.rs
+++ b/vendor/clap/examples/derive_ref/augment_args.rs
@@ -23,5 +23,5 @@ fn main() {
let derived_matches = DerivedArgs::from_arg_matches(&matches)
.map_err(|err| err.exit())
.unwrap();
- println!("Value of derived: {:#?}", derived_matches);
+ println!("Value of derived: {derived_matches:#?}");
}
diff --git a/vendor/clap/examples/derive_ref/augment_subcommands.rs b/vendor/clap/examples/derive_ref/augment_subcommands.rs
index 577527500..51cbe75d2 100644
--- a/vendor/clap/examples/derive_ref/augment_subcommands.rs
+++ b/vendor/clap/examples/derive_ref/augment_subcommands.rs
@@ -17,5 +17,5 @@ fn main() {
let derived_subcommands = Subcommands::from_arg_matches(&matches)
.map_err(|err| err.exit())
.unwrap();
- println!("Derived subcommands: {:#?}", derived_subcommands);
+ println!("Derived subcommands: {derived_subcommands:#?}");
}
diff --git a/vendor/clap/examples/derive_ref/flatten_hand_args.rs b/vendor/clap/examples/derive_ref/flatten_hand_args.rs
index 2ceeb7c0f..36aac0932 100644
--- a/vendor/clap/examples/derive_ref/flatten_hand_args.rs
+++ b/vendor/clap/examples/derive_ref/flatten_hand_args.rs
@@ -87,5 +87,5 @@ struct Cli {
fn main() {
let args = Cli::parse();
- println!("{:#?}", args);
+ println!("{args:#?}");
}
diff --git a/vendor/clap/examples/derive_ref/hand_subcommand.rs b/vendor/clap/examples/derive_ref/hand_subcommand.rs
index 5ea169cd1..ebaa60d5d 100644
--- a/vendor/clap/examples/derive_ref/hand_subcommand.rs
+++ b/vendor/clap/examples/derive_ref/hand_subcommand.rs
@@ -69,11 +69,11 @@ impl Subcommand for CliSub {
struct Cli {
#[arg(short, long)]
top_level: bool,
- #[clap(subcommand)]
+ #[command(subcommand)]
subcommand: CliSub,
}
fn main() {
let args = Cli::parse();
- println!("{:#?}", args);
+ println!("{args:#?}");
}
diff --git a/vendor/clap/examples/derive_ref/interop_tests.md b/vendor/clap/examples/derive_ref/interop_tests.md
index a7bcc7e7d..b29e2d52d 100644
--- a/vendor/clap/examples/derive_ref/interop_tests.md
+++ b/vendor/clap/examples/derive_ref/interop_tests.md
@@ -142,7 +142,7 @@ $ interop_hand_subcommand add --unknown
? failed
error: unexpected argument '--unknown' found
- note: to pass '--unknown' as a value, use '-- --unknown'
+ tip: to pass '--unknown' as a value, use '-- --unknown'
Usage: interop_hand_subcommand[EXE] add [NAME]...