Skip to content

Commit

Permalink
Sort options alphabetically.
Browse files Browse the repository at this point in the history
  • Loading branch information
gma committed Jan 14, 2013
1 parent 9b274b1 commit be280ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/nesta
Expand Up @@ -41,23 +41,23 @@ EOF
def self.parse_command_line
opts = GetoptLong.new(
['--bash-completion', GetoptLong::NO_ARGUMENT],
['--zsh-completion', GetoptLong::NO_ARGUMENT],
['--git', GetoptLong::NO_ARGUMENT],
['--help', '-h', GetoptLong::NO_ARGUMENT],
['--version', '-v', GetoptLong::NO_ARGUMENT],
['--vlad', GetoptLong::NO_ARGUMENT]
['--vlad', GetoptLong::NO_ARGUMENT],
['--zsh-completion', GetoptLong::NO_ARGUMENT]
)
options = {}
opts.each do |opt, arg|
case opt
when '--bash-completion'
bash_completion
when '--zsh-completion'
zsh_completion
when '--help'
usage(exitcode=0)
when '--version'
version
when '--zsh-completion'
zsh_completion
else
options[opt.sub(/^--/, '')] = arg
end
Expand Down

0 comments on commit be280ab

Please sign in to comment.