diff options
Diffstat (limited to 'vendor/xflags-macros/tests/data/subcommands.rs')
-rw-r--r-- | vendor/xflags-macros/tests/data/subcommands.rs | 19 |
1 files changed, 19 insertions, 0 deletions
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 + } + } +} |