From 667f94c760bcf93de19c75663671e5d8e56dad02 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 4 May 2020 15:13:09 -0400 Subject: main: Update the help message --- src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index f016b4c..a63945a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,7 +10,7 @@ use crate::frontier::mean::MeanFrontier; use crate::frontier::min::MinFrontier; use crate::frontier::Frontier; -use clap::{self, clap_app, crate_authors, crate_name, crate_version, AppSettings}; +use clap::{self, clap_app, crate_authors, crate_name, crate_version}; use image::{self, Rgba, RgbaImage}; @@ -109,7 +109,9 @@ impl Args { let args = clap_app!((crate_name!()) => (version: crate_version!()) (author: crate_authors!()) - (setting: AppSettings::ColoredHelp) + (@setting ColoredHelp) + (@setting DeriveDisplayOrder) + (@setting UnifiedHelpMessage) (@group source => (@arg DEPTH: -b --("bit-depth") +takes_value "Use all DEPTH-bit colors") (@arg INPUT: -i --input +takes_value "Use colors from the INPUT image") -- cgit v1.2.3