diff --git a/clap_generate_fig/tests/completions/fig.rs b/clap_generate_fig/tests/completions/fig.rs index 324a7d09..dca628cd 100644 --- a/clap_generate_fig/tests/completions/fig.rs +++ b/clap_generate_fig/tests/completions/fig.rs @@ -46,12 +46,12 @@ static FIG: &str = r#"const completion: Fig.Spec = { }, }, { - name: ["-h", "--help"], - description: "Print help information", + name: "--version", + description: "Print version information", }, { - name: ["-V", "--version"], - description: "Print version information", + name: ["-h", "--help"], + description: "Print help information", }, ], }, @@ -60,12 +60,12 @@ static FIG: &str = r#"const completion: Fig.Spec = { description: "Print this message or the help of the given subcommand(s)", options: [ { - name: ["-h", "--help"], - description: "Print help information", + name: "--version", + description: "Print version information", }, { - name: ["-V", "--version"], - description: "Print version information", + name: ["-h", "--help"], + description: "Print help information", }, ], }, @@ -75,10 +75,6 @@ static FIG: &str = r#"const completion: Fig.Spec = { name: ["-h", "--help"], description: "Print help information", }, - { - name: ["-V", "--version"], - description: "Print version information", - }, ], args: { name: "file", @@ -126,12 +122,12 @@ static FIG_SPECIAL_CMDS: &str = r#"const completion: Fig.Spec = { }, }, { - name: ["-h", "--help"], - description: "Print help information", + name: "--version", + description: "Print version information", }, { - name: ["-V", "--version"], - description: "Print version information", + name: ["-h", "--help"], + description: "Print help information", }, ], }, @@ -148,12 +144,12 @@ static FIG_SPECIAL_CMDS: &str = r#"const completion: Fig.Spec = { }, }, { - name: ["-h", "--help"], - description: "Print help information", + name: "--version", + description: "Print version information", }, { - name: ["-V", "--version"], - description: "Print version information", + name: ["-h", "--help"], + description: "Print help information", }, ], }, @@ -161,12 +157,12 @@ static FIG_SPECIAL_CMDS: &str = r#"const completion: Fig.Spec = { name: "some-cmd-with-hypens", options: [ { - name: ["-h", "--help"], - description: "Print help information", + name: "--version", + description: "Print version information", }, { - name: ["-V", "--version"], - description: "Print version information", + name: ["-h", "--help"], + description: "Print help information", }, ], }, @@ -175,12 +171,12 @@ static FIG_SPECIAL_CMDS: &str = r#"const completion: Fig.Spec = { description: "Print this message or the help of the given subcommand(s)", options: [ { - name: ["-h", "--help"], - description: "Print help information", + name: "--version", + description: "Print version information", }, { - name: ["-V", "--version"], - description: "Print version information", + name: ["-h", "--help"], + description: "Print help information", }, ], }, @@ -190,10 +186,6 @@ static FIG_SPECIAL_CMDS: &str = r#"const completion: Fig.Spec = { name: ["-h", "--help"], description: "Print help information", }, - { - name: ["-V", "--version"], - description: "Print version information", - }, ], args: { name: "file", @@ -249,10 +241,6 @@ static FIG_SPECIAL_HELP: &str = r#"const completion: Fig.Spec = { name: ["-h", "--help"], description: "Print help information", }, - { - name: ["-V", "--version"], - description: "Print version information", - }, { name: "--single-quotes", description: "Can be 'always', 'auto', or 'never'", @@ -328,10 +316,6 @@ static FIG_ALIASES: &str = r#"const completion: Fig.Spec = { name: ["-h", "--help"], description: "Print help information", }, - { - name: ["-V", "--version"], - description: "Print version information", - }, { name: ["-f", "-F", "--flag", "--flg"], description: "cmd flag", @@ -384,12 +368,12 @@ static FIG_SUB_SUBCMDS: &str = r#"const completion: Fig.Spec = { }, }, { - name: ["-h", "--help"], - description: "Print help information", + name: "--version", + description: "Print version information", }, { - name: ["-V", "--version"], - description: "Print version information", + name: ["-h", "--help"], + description: "Print help information", }, ], }, @@ -422,12 +406,12 @@ static FIG_SUB_SUBCMDS: &str = r#"const completion: Fig.Spec = { ], options: [ { - name: ["-h", "--help"], - description: "Print help information", + name: "--version", + description: "Print version information", }, { - name: ["-V", "--version"], - description: "Print version information", + name: ["-h", "--help"], + description: "Print help information", }, ], }, @@ -436,12 +420,12 @@ static FIG_SUB_SUBCMDS: &str = r#"const completion: Fig.Spec = { description: "Print this message or the help of the given subcommand(s)", options: [ { - name: ["-h", "--help"], - description: "Print help information", + name: "--version", + description: "Print version information", }, { - name: ["-V", "--version"], - description: "Print version information", + name: ["-h", "--help"], + description: "Print help information", }, ], }, @@ -451,10 +435,6 @@ static FIG_SUB_SUBCMDS: &str = r#"const completion: Fig.Spec = { name: ["-h", "--help"], description: "Print help information", }, - { - name: ["-V", "--version"], - description: "Print version information", - }, ], args: { name: "file",