lib/cfer/cli.rb in cfer-0.6.1 vs lib/cfer/cli.rb in cfer-0.6.2
- old
+ new
@@ -89,10 +89,10 @@
name 'tail'
usage 'tail <stack>'
summary 'Follows stack events on standard output as they occur'
flag :f, 'follow', 'Follow stack events on standard output while the changes are made.'
- optional :n, 'number', 'Prints the last (n) stack events.', type: :number
+ option :n, 'number', 'Prints the last (n) stack events.', argument: :optional, transform: method(:Integer)
run do |options, args, cmd|
Cfer::Cli.fixup_options(options)
args.each do |arg|
Cfer.tail! arg, options