Closed tejasmanohar closed 9 years ago
command :test do |c| c.syntax = 'lol test [options]' c.summary = 'Create new object' c.example 'description', 'ifttt create -t frontend' c.option '-t', 'Create team' c.option '-u', 'Create user' c.action do |args, options| p options end end
$ lol test -t bots returns <Commander::Command::Options trace=true> instead of (expected) <Commander::Command::Options t=true>.
$ lol test -t bots
<Commander::Command::Options trace=true>
<Commander::Command::Options t=true>
What is the reason for this? How can it be resolved?
Nevermind, I'll override - https://github.com/tj/commander/blob/master/lib/commander/runner.rb#L60
$ lol test -t bots
returns<Commander::Command::Options trace=true>
instead of (expected)<Commander::Command::Options t=true>
.What is the reason for this? How can it be resolved?