lib/command_lion/app.rb in command_lion-1.0.3geff vs lib/command_lion/app.rb in command_lion-1.0.3
- old
+ new
@@ -329,10 +329,10 @@
# Parse a given command with its
# @TODO Re-visit this.
def parse_cmd(cmd, flags)
if cmd.flags?
args = Raw.arguments_to(cmd.flags.short, flags)
- if args.nil? || args.empty?
+ if args.empty?
args = Raw.arguments_to(cmd.flags.long, flags)
end
else
args = Raw.arguments_to(cmd.index.to_s, flags)
end