Skip to content

Commit

Permalink
Shorten Options explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Hunt committed Oct 22, 2013
1 parent 86c66e9 commit 7b428f8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/github/auth/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,22 @@ def initialize
opts.separator "\noptions:"

opts.on(
'--add doug,sally', Array,
"GitHub user(s) you'd like to add"
'--add doug,sally', Array, 'Add GitHub users'
) do |usernames|
raise OptionParser::MissingArgument if usernames.empty?
@command = 'add'
@usernames = usernames
end

opts.on(
'--remove doug,sally', Array,
"GitHub user(s) you'd like to remove"
'--remove doug,sally', Array, 'Remove GitHub users'
) do |usernames|
raise OptionParser::MissingArgument if usernames.empty?
@command = 'remove'
@usernames = usernames
end

opts.on('--list', "List all GitHub users you've added") do
opts.on('--list', 'List all GitHub users added') do
@command = 'list'
end

Expand Down

0 comments on commit 7b428f8

Please sign in to comment.