eac_cli 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4623c36926e95a6f0e5a6aa6e311b2d2e1df28b18c31c500689864e6897f5c94
4
- data.tar.gz: 509b39644f9d0f6c47d6e5403289b7220c0863cd0233fe38694a25b5fdae6bb2
3
+ metadata.gz: 2e2305c2b18d413d495a33e51960457e7dac373738a7d27dff2827467c473ff1
4
+ data.tar.gz: 6a898a395163b7ba890ddb6bf6b33401dc2b35b644901a79c7c413db11237adc
5
5
  SHA512:
6
- metadata.gz: c8c1a71998152f7b02211b40c5604b9506fb4dd644f1113b41b89a0b7139eba3a48da83f157c5499f54d1685f31f876317ec473ae1517367d794a82652f5e250
7
- data.tar.gz: 86e4e7692ae833da2ceae78487bc4764aed954a44a57f5720c6158fad0b26ec5508c6a523d554788ed8eabde8aaf7451c84d435bb14540a309b79aa1bde226ef
6
+ metadata.gz: 5c77641706241d55d18e46c00561679f079edbdec72049b13812f470034bf6b5c1164f07cf9dadee1649194878a22fbd4679065922018e971fa369f279d746d8
7
+ data.tar.gz: 184c4741948f5014aeac1704745f11accd99f3c2c514c2df2d96fd9f8458dab6aa0de993b9a4b8b79b3caf52d4ab9de5ddbb367219095c5cd90a2206db97d25f
@@ -25,6 +25,10 @@ module EacCli
25
25
  def doc
26
26
  ::EacCli::Runner::DocoptDoc.new(self.class.runner_definition).to_s
27
27
  end
28
+
29
+ def docopt_options
30
+ super.merge(options_first: self.class.runner_definition.options_first?)
31
+ end
28
32
  end
29
33
  end
30
34
  end
@@ -59,6 +59,14 @@ module EacCli
59
59
  def subcommands
60
60
  positional << PositionalArgument.new('subcommand', subcommand: true)
61
61
  end
62
+
63
+ def options_first(enable = true)
64
+ @options_first = enable
65
+ end
66
+
67
+ def options_first?
68
+ @options_first ? true : false
69
+ end
62
70
  end
63
71
  end
64
72
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacCli
4
- VERSION = '0.3.0'
4
+ VERSION = '0.4.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-15 00:00:00.000000000 Z
11
+ date: 2020-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eac_ruby_utils
@@ -73,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubyforge_project:
77
- rubygems_version: 2.7.7
76
+ rubygems_version: 3.0.6
78
77
  signing_key:
79
78
  specification_version: 4
80
79
  summary: Utilities to build CLI applications with Ruby.