use claps variant list
This commit is contained in:
parent
716a845e55
commit
e5c6ca9237
@ -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,
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user