Skip to content

Commit

Permalink
Require reader option in CLI. Closes #35.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblcc committed Jun 18, 2015
1 parent 223657c commit ca14c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/mdtranslator
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ with options to select the input file reader, select writer output format, show
in XML outputs, and choose level of validation for JSON inputs.
LONGDESC
# define cli options
method_option :reader, :aliases => '-r', :desc => 'Reader to read your input metadata file', :enum => %w{mdJson}
method_option :reader, :aliases => '-r', :desc => 'Reader to read your input metadata file', :enum => %w{mdJson}, :required => true
method_option :writer, :aliases => '-w', :desc => 'Writer to create your output metadata file, leave blank to validate input only', :enum => %w{iso19115_2 iso19110 html}
method_option :validate, :aliases => '-v', :desc => 'Specify level of validation to be performed', :enum => %w{none normal strict}, :default => 'normal'
method_option :showAllTags, :aliases => '-s', :desc => 'Include tags for unused attributes', :type => :boolean, :default => false
Expand Down

0 comments on commit ca14c6b

Please sign in to comment.