diff options
author | Andrew Gallant <jamslam@gmail.com> | 2015-03-23 17:29:23 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2015-03-23 17:29:23 -0400 |
commit | 04e65cc253d78235bde321c18cd5a162f4c03806 (patch) | |
tree | 888afee2394b67b22748f07620a09edeaa59d6e3 /src/main.rs | |
parent | 72999f5cf63192a3db8c86b91002324d5f31bfb5 (diff) |
Fix #7.
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index be47325..860c631 100644 --- a/src/main.rs +++ b/src/main.rs @@ -51,6 +51,7 @@ macro_rules! command_list { fmt Format CSV output (change field delimiter) frequency Show frequency tables headers Show header names + help Show this usage message. index Create CSV index for faster access join Join CSV files sample Randomly sample CSV data @@ -136,6 +137,7 @@ enum Command { Fmt, Frequency, Headers, + Help, Index, Join, Sample, @@ -161,6 +163,7 @@ impl Command { Command::Fmt => cmd::fmt::run(argv), Command::Frequency => cmd::frequency::run(argv), Command::Headers => cmd::headers::run(argv), + Command::Help => { wout!("{}", USAGE); Ok(()) } Command::Index => cmd::index::run(argv), Command::Join => cmd::join::run(argv), Command::Sample => cmd::sample::run(argv), |