summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amatus.name>2013-10-05 14:45:26 -0500
committerDavid Barksdale <amatus@amatus.name>2013-10-05 14:45:26 -0500
commit283c16f6b98c11e77a9d8fc911d3a4d579b3b84e (patch)
treeb6d9a56a871f44340bac9fa4a176c1ddc4d27b75
parent2a3ded6ece091bad01be8077006e628119542fd0 (diff)
Fixed opt_flag arguments and usage.
-rw-r--r--per.rs6
1 files changed, 3 insertions, 3 deletions
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;
}
};