mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 14:52:33 +00:00
45a7c2e37e
The generated scripts can be used as script, module and overlay. * script `source completion_script.nu` * module `use completion_script.nu *` * overlay `overlay use completion_script.nu`
30 lines
506 B
Text
30 lines
506 B
Text
module completions {
|
|
|
|
export extern my-app [
|
|
-c
|
|
-v
|
|
--help(-h) # Print help
|
|
]
|
|
|
|
# Subcommand
|
|
export extern "my-app test" [
|
|
-d
|
|
-c
|
|
--help(-h) # Print help
|
|
]
|
|
|
|
# Print this message or the help of the given subcommand(s)
|
|
export extern "my-app help" [
|
|
]
|
|
|
|
# Subcommand
|
|
export extern "my-app help test" [
|
|
]
|
|
|
|
# Print this message or the help of the given subcommand(s)
|
|
export extern "my-app help help" [
|
|
]
|
|
|
|
}
|
|
|
|
export use completions *
|