lib/gurke/cli.rb in gurke-2.0.1 vs lib/gurke/cli.rb in gurke-2.0.2
- old
+ new
@@ -6,10 +6,10 @@
# Run CLI with given arguments.
#
# @param argv [Array<String>] Tokenized argument list.
#
def run(argv)
- call parser.parse(argv), argv
+ call parser.parse(argv.dup), argv
rescue Trollop::VersionNeeded
print_version && exit
rescue Trollop::HelpNeeded
print_help && exit
rescue Trollop::CommandlineError => e