Skip to content

Commit

Permalink
fix(cli): generate -> generate-completion
Browse files Browse the repository at this point in the history
  • Loading branch information
graelo committed Aug 18, 2022
1 parent 47dc489 commit d5bc338
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ pub enum Command {
},

/// Print a shell completion script to stdout.
Generate {
GenerateCompletion {
/// Shell for which you want completion.
#[clap(value_parser = clap::value_parser!(Shell))]
shell: Shell,
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async fn run(config: Config) {

Command::Restore { .. } => unimplemented!(),

Command::Generate { shell } => {
Command::GenerateCompletion { shell } => {
let mut app = Config::command();
let name = app.get_name().to_string();
generate(shell, &mut app, name, &mut std::io::stdout());
Expand Down

0 comments on commit d5bc338

Please sign in to comment.