From e5c6ca9237015d7cde64604664de52c802376f51 Mon Sep 17 00:00:00 2001 From: shimun Date: Tue, 13 Oct 2020 19:27:59 +0200 Subject: [PATCH] use claps variant list --- src/cli_args/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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, },