Skip to content

fix issue 58#59

Open
windowsrefund wants to merge 1 commit intoagent462:masterfrom
windowsrefund:issue-58
Open

fix issue 58#59
windowsrefund wants to merge 1 commit intoagent462:masterfrom
windowsrefund:issue-58

Conversation

@windowsrefund
Copy link

@windowsrefund windowsrefund commented Jan 24, 2018

Adds --format option to silenced list. See #58

opt :format, 'Available formats; single, table, json', :short => 'f', :type => :string
end
Trollop::die :offset, 'Offset depends on the limit option --limit ( -l )'.color(:red) if p[:offset] && !p[:limit]
Trollop::die :format, 'Available optional formats: single, table, json'.color(:red) if p[:format] != 'table' && p[:format] != 'single' && p[:format] != 'json' && p[:format]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these would need to be || rather than && it can't possibly be all of the combinations it just needs to be one of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants