Skip to content

Commit 7b428f8

Browse files
author
Chris Hunt
committed
Shorten Options explanation
1 parent 86c66e9 commit 7b428f8

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

lib/github/auth/options.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,22 @@ def initialize
1818
opts.separator "\noptions:"
1919

2020
opts.on(
21-
'--add doug,sally', Array,
22-
"GitHub user(s) you'd like to add"
21+
'--add doug,sally', Array, 'Add GitHub users'
2322
) do |usernames|
2423
raise OptionParser::MissingArgument if usernames.empty?
2524
@command = 'add'
2625
@usernames = usernames
2726
end
2827

2928
opts.on(
30-
'--remove doug,sally', Array,
31-
"GitHub user(s) you'd like to remove"
29+
'--remove doug,sally', Array, 'Remove GitHub users'
3230
) do |usernames|
3331
raise OptionParser::MissingArgument if usernames.empty?
3432
@command = 'remove'
3533
@usernames = usernames
3634
end
3735

38-
opts.on('--list', "List all GitHub users you've added") do
36+
opts.on('--list', 'List all GitHub users added') do
3937
@command = 'list'
4038
end
4139

0 commit comments

Comments
 (0)