mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
53 lines
904 B
JavaScript
53 lines
904 B
JavaScript
const completion: Fig.Spec = {
|
|
name: "my-app",
|
|
description: "",
|
|
subcommands: [
|
|
{
|
|
name: "test",
|
|
description: "Subcommand",
|
|
options: [
|
|
{
|
|
name: "-d",
|
|
isRepeatable: true,
|
|
},
|
|
{
|
|
name: ["-h", "--help"],
|
|
description: "Print help information",
|
|
},
|
|
{
|
|
name: "-c",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: "help",
|
|
description: "Print this message or the help of the given subcommand(s)",
|
|
options: [
|
|
{
|
|
name: "-c",
|
|
},
|
|
],
|
|
args: {
|
|
name: "subcommand",
|
|
isOptional: true,
|
|
},
|
|
},
|
|
],
|
|
options: [
|
|
{
|
|
name: ["-h", "--help"],
|
|
description: "Print help information",
|
|
},
|
|
{
|
|
name: "-c",
|
|
},
|
|
{
|
|
name: "-v",
|
|
exclusiveOn: [
|
|
"-c",
|
|
],
|
|
},
|
|
],
|
|
};
|
|
|
|
export default completion;
|