Skip to content

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