We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb7388c commit aa8efddCopy full SHA for aa8efdd
src/main.rs
@@ -4,10 +4,12 @@ use structopt::StructOpt;
4
5
mod options {
6
use structopt::StructOpt;
7
+ use structopt::clap::AppSettings;
8
9
#[derive(Debug, StructOpt)]
10
#[structopt(about = "The git, simply swift")]
- #[structopt(setting = structopt::clap::AppSettings::SubcommandRequired)]
11
+ #[structopt(settings = &[AppSettings::SubcommandRequired,
12
+ AppSettings::ColoredHelp])]
13
pub struct Args {
14
#[structopt(subcommand)]
15
pub cmd: Subcommands,
@@ -17,6 +19,7 @@ mod options {
17
19
pub enum Subcommands {
18
20
/// Initialize the repository in the current directory.
21
#[structopt(alias = "initialize")]
22
+ #[structopt(setting = AppSettings::ColoredHelp)]
23
Init,
24
}
25
0 commit comments