Skip to content
This repository was archived by the owner on Mar 3, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ghi
Original file line number Diff line number Diff line change
Expand Up @@ -2469,8 +2469,8 @@ module GHI
@repo = nil
end
opts.on(
'-s', '--state <in>', %w(open closed),
{'o'=>'open', 'c'=>'closed'}, "'open' or 'closed'"
'-s', '--state <in>', %w(open closed all),
{'o'=>'open', 'c'=>'closed', 'a'=>'all'}, "'open', 'closed', 'all'"
) do |state|
assigns[:state] = state
end
Expand Down Expand Up @@ -2656,6 +2656,7 @@ module GHI
def fallback
OptionParser.new do |opts|
opts.on('-c', '--closed') { assigns[:state] = 'closed' }
opts.on('-a', '--all') { assigns[:state] = 'all' }
opts.on('-q', '--quiet') { self.quiet = true }
end
end
Expand Down
5 changes: 3 additions & 2 deletions lib/ghi/commands/list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def options
@repo = nil
end
opts.on(
'-s', '--state <in>', %w(open closed),
{'o'=>'open', 'c'=>'closed'}, "'open' or 'closed'"
'-s', '--state <in>', %w(open closed all),
{'o'=>'open', 'c'=>'closed', 'a'=>'all'}, "'open', 'closed', 'all'"
) do |state|
assigns[:state] = state
end
Expand Down Expand Up @@ -205,6 +205,7 @@ def uri
def fallback
OptionParser.new do |opts|
opts.on('-c', '--closed') { assigns[:state] = 'closed' }
opts.on('-a', '--all') { assigns[:state] = 'all' }
opts.on('-q', '--quiet') { self.quiet = true }
end
end
Expand Down