From 283c16f6b98c11e77a9d8fc911d3a4d579b3b84e Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Sat, 5 Oct 2013 14:45:26 -0500 Subject: Fixed opt_flag arguments and usage. --- per.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'per.rs') diff --git a/per.rs b/per.rs index f6ac820..9437055 100644 --- a/per.rs +++ b/per.rs @@ -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; } }; -- cgit v1.2.3-18-g5258