mirror of
https://github.com/clap-rs/clap
synced 2024-12-15 07:12:32 +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`
18 lines
477 B
Text
18 lines
477 B
Text
module completions {
|
|
|
|
# testing nushell completions
|
|
export extern my-app [
|
|
--flag(-f) # cmd flag
|
|
--flg # cmd flag
|
|
-F # cmd flag
|
|
--option(-o): string # cmd option
|
|
--opt: string # cmd option
|
|
-O: string # cmd option
|
|
positional?: string
|
|
--help(-h) # Print help
|
|
--version(-V) # Print version
|
|
]
|
|
|
|
}
|
|
|
|
export use completions *
|