diff --git a/src/cli_args/mod.rs b/src/cli_args/mod.rs index 7b99b0d..bafd36a 100644 --- a/src/cli_args/mod.rs +++ b/src/cli_args/mod.rs @@ -2,7 +2,7 @@ use std::fmt::{Display, Error, Formatter}; use std::hash::{Hash, Hasher}; use std::path::PathBuf; use std::str::FromStr; -use structopt::clap::AppSettings; +use structopt::clap::{AppSettings, Shell}; use structopt::StructOpt; mod config; @@ -253,8 +253,8 @@ pub enum Command { /// Generate bash completion scripts #[structopt(name = "completions", setting = AppSettings::Hidden)] GenerateCompletions { - /// Shell to generate completions for: bash, fish - #[structopt(possible_values = &["bash", "fish"])] + /// Shell to generate completions for + #[structopt(possible_values = &Shell::variants()[..])] shell: String, out_dir: PathBuf, },