mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
32 lines
639 B
JavaScript
32 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;
|