Skip to content

Commit

Permalink
Add back ls/rm shorthand for list/remove.
Browse files Browse the repository at this point in the history
  • Loading branch information
tfe committed Feb 17, 2011
1 parent 860fe0f commit 79bf9ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/duostack
Expand Up @@ -258,8 +258,9 @@ module Duostack
def process_crud_command(opts)

# get action
action = @args.shift
action ||= 'list' # list is the default
action = @args.shift || 'list' # list is the default
action = 'list' if action == 'ls' # normalize shorthand for list
action = 'remove' if action == 'rm' # normalize shorthand for remove

# extract important things from opts, otherwise merge defaults
resource = opts[:resource]
Expand Down

0 comments on commit 79bf9ca

Please sign in to comment.