Method: Ankit::TextReadingCommand#validate_options
- Defined in:
- lib/ankit/text_reading_command.rb
#validate_options ⇒ Object
36 37 38 39 40 |
# File 'lib/ankit/text_reading_command.rb', line 36 def raise BadOptions, "--stdin cannot have any fileame" if [:stdin] and not args.empty? raise BadOptions, "--editor cannot have any fileame" if [:editor] and not args.empty? raise BadOptions, "need a fileame" if not ([:stdin] or [:editor]) and args.empty? end |