commit d12c04a1d8ed63f8d9b9fdad9a4223f6fa43bafa
parent e3b46d08d34dd117af83bb4406cf1720e914a05b
Author: lostd <lostd@2f30.org>
Date: Sun, 30 Dec 2012 19:16:32 +0000
More clear usage info
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/bin/musicfix b/bin/musicfix
@@ -123,7 +123,9 @@ def mkposlist tracks
end
# Parse command line
-usage = "Usage: musicfix relfile | relid [tracks]"
+usage = ""
+usage << "Usage: musicfix relfile\n"
+usage << " musicfix relid [tracks]\n"
relfile = relid = ARGV[0] || (puts usage; exit)
tracks = ARGV[1] || nil
usefile = File.exists? relfile