diff options
author | David Barksdale <amatus@amatus.name> | 2013-10-05 14:45:26 -0500 |
---|---|---|
committer | David Barksdale <amatus@amatus.name> | 2013-10-05 14:45:26 -0500 |
commit | 283c16f6b98c11e77a9d8fc911d3a4d579b3b84e (patch) | |
tree | b6d9a56a871f44340bac9fa4a176c1ddc4d27b75 /per.rs | |
parent | 2a3ded6ece091bad01be8077006e628119542fd0 (diff) |
Fixed opt_flag arguments and usage.
Diffstat (limited to 'per.rs')
-rw-r--r-- | per.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -19,8 +19,8 @@ fn main() { groups::optmulti("r", "rate", "Sample rate in Hz", "44100"), groups::optopt("s", "split", "Number of minutes at which to split MP3 files", "60"), - groups::optflag("a", - "Align splits as if the first one happened midnight Jan. 1, 1970", ""), + groups::optflag("a", "align", + "Align splits as if the first one happened midnight Jan. 1, 1970"), groups::optopt("b", "bitrate", "MP3 bitrate in kbps", "128"), groups::optopt("q", "quality", "MP3 quality", "2"), ]; @@ -31,7 +31,7 @@ fn main() { Ok(m) => m, Err(f) => { println(f.to_err_msg()); - print(groups::usage("Usage: per", opts)); + print(groups::usage("Usage: per [options]", opts)); return; } }; |