WIP: 0.3.0 #5

Draft
shimun wants to merge 34 commits from 0.3.0 into master
Showing only changes of commit e5c6ca9237 - Show all commits

View File

@ -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,
},