mirror of
https://github.com/clap-rs/clap
synced 2025-01-09 03:08:45 +00:00
33 lines
639 B
JavaScript
33 lines
639 B
JavaScript
|
const completion: Fig.Spec = {
|
||
|
name: "my-app",
|
||
|
description: "testing bash completions",
|
||
|
options: [
|
||
|
{
|
||
|
name: ["-o", "-O", "--option", "--opt"],
|
||
|
description: "cmd option",
|
||
|
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;
|