optparse icon indicating copy to clipboard operation
optparse copied to clipboard

OptionParser is a class for command-line option analysis.

Results 8 optparse issues
Sort by recently updated
recently updated
newest added

Hi, Thanks a lot for this gem! I wrote a little hacky class that adds support for `default` values. So you can do: ```ruby parser.on('-m', '--tracing-mode MODE', 'Define the category...

As I said in an earlier PR, my aim is for: - The parameters doc to be about what the _parameters_ do. - The tutorial doc to be about what...

documentation

Good moning. I'm thankful for this gem. --- After updating to ver 0.5.0, When option parameter type set as Array, Error raised at 'parse!' method with 'into:' keyword. See below...

OptionParser supports Array and Hash object as an enum of option value. But Set object is not supported. For example: ```ruby require 'optparse' parser = OptionParser.new parser.on("--lang1=", ["en", "fr", "it"])...

Bug #74 seems to be fixed on v0.5.0, but Ruby 3.3 bundles v0.4.0. Therefore it is recommended to backport the bugfix to v0.4.0.

ruby -v shows `ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86_64-linux]` gem list --local shows `optparse (default: 0.4.0)` Snippet: ```ruby require 'optparse' parser = OptionParser.new parser.on('-x [XXX]', 'description') do |value| p ['-x',...

Consider: ``` require 'optparse' options = {} OptionParser.new do |opts| opts.banner = "Usage: #{$0} [options]" opts.on('-d', '--do-thing', 'Do a thing') do options[:do] = true end opts.on('-l', '--long-option', 'Here\'s an option...