Skip to content

Commit

Permalink
color for all grit commands/subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Jun 15, 2020
1 parent eb7388c commit aa8efdd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ use structopt::StructOpt;

mod options {
use structopt::StructOpt;
use structopt::clap::AppSettings;

#[derive(Debug, StructOpt)]
#[structopt(about = "The git, simply swift")]
#[structopt(setting = structopt::clap::AppSettings::SubcommandRequired)]
#[structopt(settings = &[AppSettings::SubcommandRequired,
AppSettings::ColoredHelp])]
pub struct Args {
#[structopt(subcommand)]
pub cmd: Subcommands,
Expand All @@ -17,6 +19,7 @@ mod options {
pub enum Subcommands {
/// Initialize the repository in the current directory.
#[structopt(alias = "initialize")]
#[structopt(setting = AppSettings::ColoredHelp)]
Init,
}
}
Expand Down

0 comments on commit aa8efdd

Please sign in to comment.