From 8c1430424468e799435f5e1c877f72d0565ff38c Mon Sep 17 00:00:00 2001 From: Till Höppner Date: Wed, 3 Feb 2016 03:56:38 +0100 Subject: Add about lines to subcommands --- src/main.rs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 2603a27..6c87367 100644 --- a/src/main.rs +++ b/src/main.rs @@ -80,15 +80,20 @@ fn main() { .short("o")) .subcommand(SubCommand::with_name("parse") .about("Parse the input, checking the format")) - .subcommand(SubCommand::with_name("convert")) - .subcommand(SubCommand::with_name("freq")) + .subcommand(SubCommand::with_name("convert") + .about("Convert from a source to a target format")) + .subcommand(SubCommand::with_name("freq") + .about("Analyse the activity of users by certain metrics")) .subcommand(SubCommand::with_name("seen") + .about("Print the last line a nick was active") .arg(Arg::with_name("nick") .help("The nick you're looking for") .takes_value(true).required(true) .index(1))) - .subcommand(SubCommand::with_name("sort")) - .subcommand(SubCommand::with_name("dedup")) + .subcommand(SubCommand::with_name("sort") + .about("Sorts a log by time")) + .subcommand(SubCommand::with_name("dedup") + .about("Removes duplicate log entries in close proximity")) .get_matches(); match args.subcommand() { -- cgit v1.2.3