aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 5b8c19c..817d39b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -6,7 +6,7 @@ use std::{
};
use anyhow::{anyhow, bail, Context, Result};
-use clap::{crate_version, App, Arg, ArgMatches, SubCommand};
+use clap::{crate_version, App, AppSettings, Arg, ArgMatches, SubCommand};
use itertools::Itertools;
use log::debug;
use termcolor::{Color, ColorChoice, ColorSpec, StandardStream, WriteColor};
@@ -76,6 +76,7 @@ fn main() -> Result<()> {
.required(false),
),
)
+ .settings(&[AppSettings::SubcommandRequired, AppSettings::ColoredHelp])
.get_matches();
let mut stdout = StandardStream::stdout(ColorChoice::Auto);