-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
A-completionArea: completion generatorArea: completion generatorC-bugCategory: bugCategory: bugE-easyCall for participation: Experience needed to fix: Easy / not muchCall for participation: Experience needed to fix: Easy / not much
Description
Rust Version
rustc 1.54.0 (a178d0322 2021-07-26)
Clap Version
master
Minimal reproducible code
use clap::{ArgEnum, Clap, IntoApp};
use clap_generate::generators;
fn main() {
clap_generate::generate::<generators::Fish, _>(
&mut App::into_app(),
"clap-issue",
&mut std::io::stdout(),
);
}
#[derive(Clap)]
struct App {
#[clap(arg_enum)]
arg: A,
}
#[derive(ArgEnum)]
enum A {
A,
B,
}
Steps to reproduce the bug with the above code
cargo run
Actual Behaviour
complete -c clap-issue -s h -l help -d 'Print help information'
complete -c clap-issue -s V -l version -d 'Print version information'
Expected Behaviour
complete -c clap-issue -s h -l help -d 'Print help information'
complete -c clap-issue -s V -l version -d 'Print version information'
complete -c clap-issue -r -f -a "a b"
Additional Context
No response
Debug Output
No response
superatomic
Metadata
Metadata
Assignees
Labels
A-completionArea: completion generatorArea: completion generatorC-bugCategory: bugCategory: bugE-easyCall for participation: Experience needed to fix: Easy / not muchCall for participation: Experience needed to fix: Easy / not much