cli-option_parser.rb 0.5.3 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2eccb7efc9099bd313c8029e63e4c66d6db27c99d49074c3b310944b1e3215fc
4
- data.tar.gz: edbcf3b26cbe7230b2f87fa8c03603ccadc9f2b9e05db67cb154ef518e09e169
3
+ metadata.gz: 2d365632981faf7162ffa52adc29b8bd3dbee9729f159ca1b14719d0be84048c
4
+ data.tar.gz: 629ab57644cef615ddf9037d31bbdabb168ee808b1e87ccc507cf6cb233e49c2
5
5
  SHA512:
6
- metadata.gz: 1f271b3e8fc37d64855eceb5e930b7307ee3bbda1941551bddcc3dcbf7030a5527e6d3adcd74474e0fcd76899bb0835d78990f720d92e7bcc35361d395f3fac1
7
- data.tar.gz: 1cd5aae0100520636ebdd5cff1c3585d7f79d5f7e72b16aa438d071d73edb8d26c9019db267dc75ace047fcf53d3cdafae414e1925903407bf3e42c8c3758fff
6
+ metadata.gz: c48516e5910222aec437efe69472b05862ce5ef5049400f944b623208c8725f33d91a22b665c5a718174c0dc20f315cc41a52ed2afd7af42740bb8e1fcac36e1
7
+ data.tar.gz: 7aa2efbc53841de9009d4d91d809023d06fb394ce03bfa113ac5f5df04f16b53fb4481954278412bcdc25ad289215e334d221491afc9b2ae8aa83a57b3b37059
@@ -6,8 +6,8 @@ Gem::Specification.new do |spec|
6
6
  spec.authors = ["0x1eef", "Nobu Nakada"]
7
7
  spec.email = ["0x1eef@protonmail.com"]
8
8
 
9
- spec.summary = %q{OptionParser is a class for command-line option analysis.}
10
- spec.description = %q{OptionParser is a class for command-line option analysis.}
9
+ spec.summary = %q{Fork of ruby/optparse}
10
+ spec.description = %q{Fork of ruby/optparse}
11
11
  spec.homepage = "https://github.com/0x1eef/cli-option_parser.rb#readme"
12
12
  spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
13
13
  spec.licenses = ["Ruby", "BSD-2-Clause"]
@@ -427,7 +427,7 @@ module CLI
427
427
  end unless defined?(CLI)
428
428
 
429
429
  class CLI::OptionParser
430
- VERSION = "0.5.3"
430
+ VERSION = "0.6.0"
431
431
 
432
432
  # :stopdoc:
433
433
  NoArgument = [NO_ARGUMENT = :NONE, nil].freeze
@@ -1776,6 +1776,18 @@ XXX
1776
1776
  end
1777
1777
  end
1778
1778
 
1779
+ ##
1780
+ # @return [CLI::OptionParser::Switch]
1781
+ # Returns the subclasses of
1782
+ # {CLI::OptionParser::Switch CLI::OptionParser::Switch}
1783
+ # who accept an optional argument.
1784
+ def optional_switches
1785
+ [
1786
+ CLI::OptionParser::Switch::PlacedArgument,
1787
+ CLI::OptionParser::Switch::OptionalArgument
1788
+ ]
1789
+ end
1790
+
1779
1791
  #
1780
1792
  # Wrapper method for getopts.rb.
1781
1793
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cli-option_parser.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - '0x1eef'
@@ -9,9 +9,9 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-01-30 00:00:00.000000000 Z
12
+ date: 2024-02-27 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: OptionParser is a class for command-line option analysis.
14
+ description: Fork of ruby/optparse
15
15
  email:
16
16
  - 0x1eef@protonmail.com
17
17
  executables: []
@@ -150,5 +150,5 @@ requirements: []
150
150
  rubygems_version: 3.5.3
151
151
  signing_key:
152
152
  specification_version: 4
153
- summary: OptionParser is a class for command-line option analysis.
153
+ summary: Fork of ruby/optparse
154
154
  test_files: []