mirror of
https://github.com/clap-rs/clap
synced 2024-12-15 07:12:32 +00:00
122b562e6b
This is in prep for removing StoreValue/IncOccurrences
33 lines
665 B
JavaScript
33 lines
665 B
JavaScript
const completion: Fig.Spec = {
|
|
name: "my-app",
|
|
description: "testing bash completions",
|
|
options: [
|
|
{
|
|
name: ["-o", "-O", "--option", "--opt"],
|
|
description: "cmd option",
|
|
isRepeatable: true,
|
|
args: {
|
|
name: "option",
|
|
isOptional: true,
|
|
},
|
|
},
|
|
{
|
|
name: ["-h", "--help"],
|
|
description: "Print help information",
|
|
},
|
|
{
|
|
name: ["-V", "--version"],
|
|
description: "Print version information",
|
|
},
|
|
{
|
|
name: ["-f", "-F", "--flag", "--flg"],
|
|
description: "cmd flag",
|
|
},
|
|
],
|
|
args: {
|
|
name: "positional",
|
|
isOptional: true,
|
|
},
|
|
};
|
|
|
|
export default completion;
|