lib/wgif/argument_parser.rb in wgif-0.4.0 vs lib/wgif/argument_parser.rb in wgif-0.5.0

- old
+ new

@@ -18,18 +18,18 @@ opts.on('-f N', '--frames N', 'Number of frames in the final gif. (Default 20)') { |n| @options[:frames] = n.to_i } - opts.on('-s HH:MM:SS', - '--start HH:MM:SS', + opts.on('-s HH:MM:SS.SSSS', + '--start HH:MM:SS.SSSS', 'Start creating gif from input video at this timestamp. (Default 00:00:00)') { |ts| @options[:trim_from] = ts } opts.on('-d seconds', '--duration seconds', - 'Number of seconds of input video to capture. (Default 1)') { + 'Number of seconds of input video to capture. (Default 1.0)') { |d| @options[:duration] = d.to_f } opts.on('-w pixels', '--width pixels', 'Width of the gif in pixels. (Default 480px)') { @@ -89,10 +89,10 @@ puts 'Usage: wgif [YouTube URL] [output file] [options]', "\n" puts argument_summary, "\n" puts <<-example Example: - $ wgif https://www.youtube.com/watch?v=1A78yTvIY1k bjork.gif -s 00:03:30 -d 2 -w 400 --upload + $ wgif https://www.youtube.com/watch?v=1A78yTvIY1k bjork.gif -s 00:03:30 -d 2.2 -w 400 --upload example end end end