bin/dmapparser in dmapparser-0.0.1 vs bin/dmapparser in dmapparser-0.0.2
- old
+ new
@@ -1,4 +1,8 @@
#!/usr/bin/env ruby
require 'dmapparser'
-puts DMAPParser::Parser.parse(ARGF.to_io).inspect
\ No newline at end of file
+if ARGV.size > 0
+ puts DMAPParser::Parser.parse(ARGF.to_io).inspect
+else
+ puts "Usage: #{$PROGRAM_NAME} filename"
+end