aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTill Höppner2016-02-03 03:56:38 +0100
committerTill Höppner2016-02-03 03:56:38 +0100
commit8c1430424468e799435f5e1c877f72d0565ff38c (patch)
tree4ade8f079ee38a9ec543ecef41e74887a67be8c4
parent240206e4761a9447cf0bed7110061f293daa6b50 (diff)
downloadilc-8c1430424468e799435f5e1c877f72d0565ff38c.tar.gz
ilc-8c1430424468e799435f5e1c877f72d0565ff38c.tar.xz
ilc-8c1430424468e799435f5e1c877f72d0565ff38c.zip
Add about lines to subcommands
-rw-r--r--src/main.rs13
1 files 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() {