Method: AIXM::Executables::Mkmid#initialize
- Defined in:
- lib/aixm/executables.rb
#initialize(**options) ⇒ Mkmid
Returns a new instance of Mkmid.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/aixm/executables.rb', line 7 def initialize(**) = OptionParser.new do |o| o. = " Add mid attributes to OFMX files.\n Usage: \#{File.basename($0)} files\n END\n o.on('-i', '--[no-]in-place', 'overwrite file instead of dumping to STDOUT (default: false)') { @options[:in_place] = _1 }\n o.on('-f', '--[no-]force', 'ignore XML schema validation errors (default: false)') { @options[:force] = _1 }\n o.on('-A', '--about', 'show author/license information and exit') { AIXM::Executables.about }\n o.on('-V', '--version', 'show version and exit') { AIXM::Executables.version }\n end.parse!\n @files = ARGV\nend\n" |