From 20431706a863f92cb37dc512fef6e48d192aaf2c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:11:38 +0200 Subject: Merging upstream version 1.66.0+dfsg1. Signed-off-by: Daniel Baumann --- vendor/xflags-macros/tests/data/subcommands.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 vendor/xflags-macros/tests/data/subcommands.rs (limited to 'vendor/xflags-macros/tests/data/subcommands.rs') diff --git a/vendor/xflags-macros/tests/data/subcommands.rs b/vendor/xflags-macros/tests/data/subcommands.rs new file mode 100644 index 000000000..45fab8232 --- /dev/null +++ b/vendor/xflags-macros/tests/data/subcommands.rs @@ -0,0 +1,19 @@ +xflags! { + cmd rust-analyzer { + repeated -v, --verbose + + cmd server { + optional --dir path:PathBuf + default cmd launch { + optional --log + } + cmd watch { + } + } + + cmd analysis-stats { + required path: PathBuf + optional --parallel + } + } +} -- cgit v1.2.3