fuelcell 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTg3NDk4Y2I4ZWI1YzEwOWI0NzYxODY1Y2JlZGUwYzAzNDhmMWQxZQ==
4
+ M2VlMjQzMGQwOGNjYTA1MmY4YjhlMTkzNzc2YWExMzBlMGNhNjFkNw==
5
5
  data.tar.gz: !binary |-
6
- ZDY3MzdiNjdmM2RmYTMyNzk5MjMxZWU3MTk0ZjlhMTQ5YTdmYmJjZA==
6
+ NmNmMGQzNTE4NDU2NmI1M2MwNTMyMThmMTczYzg0NjY0NDRmOGIwMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODJhODQxYTcwYjg1ZmVmZDA5OGI5ZDc2M2QyNWE2ZWM3YjE2MGMwMDkxNDUx
10
- ZDBiNjdkNmE5OTMxYzVjZjY0ZGI4OGU3MTM1YjE0NTA2NWMwOWNhODA2Y2Rh
11
- M2VlNjljZTU2YzgxOWJlZjEzNWQwNmY4ZGUyNDUxMWY2MTdiMjM=
9
+ MWQzNGRjNGI5NTRiNDExZTVhMmM1Mzc0NzM2MDJkNGI4ZWZjMjA0YTc5ZjY0
10
+ YTdhYmZlMjZiZjVmMjJkOTMxYmY4NjZiNDJmMGYwMDhiZDY3YjY0OWE3ZDhl
11
+ ZjlmNzk1MTliZTk4NTcxZmE4NzhiODA2YWQyZmU2OTg0NjEwYTI=
12
12
  data.tar.gz: !binary |-
13
- MWMwZDk4ZDg5YzQ1MmE2MDRiNmFjNDdjYzBhYTYxNmU4MmI3N2NhNDI3NWI3
14
- NGFkY2RkNjkwYTQyMDczMjg0ZWMzNTZmODFmNTBlM2IxNGRmOTEzYzc4NmFi
15
- OWM4ZmM1MDhhZDNmNDE2YzlhYzVhMGQzMDRlZmRiMmQ2NjExYjE=
13
+ OGQxNzc4NDRlNDY1NDRlMTM5NmVkOTBjMjI3OTAxNGQ0N2JiMjc4NTNhYzFm
14
+ MmNlNGRjNmQzNDYzYTM5ZTAxZTQ0ZWVkNGY1YWM0ZWY1YjRhOTdlMWEwNDRk
15
+ NjI4ZWMyZWU0YTkxY2JjNWRmMTRmMjBkOTI0MGY3NDYxZWI2Mjc=
@@ -50,6 +50,11 @@ module Fuelcell
50
50
  create_tree(self, cmd_args)
51
51
  end
52
52
 
53
+ def add_global_options(cmd)
54
+ return cmd if cmd.is_a?(self.class)
55
+ super
56
+ end
57
+
53
58
  private
54
59
 
55
60
  def script_name
@@ -45,7 +45,8 @@ module Fuelcell
45
45
  ignores = ignore_handler.call(raw_args)
46
46
  args = run_option_handlers(cmd, raw_args, opts)
47
47
  args = arg_handler.call(cmd, args)
48
- unless cmd.name == 'help'
48
+
49
+ unless cmd.name == 'help' || cmd.opts.callable?
49
50
  cmd.missing_opts(opts.keys) do |missing|
50
51
  fail "option [#{missing.first.cli_names}] is required"
51
52
  end
@@ -1,3 +1,3 @@
1
1
  module Fuelcell
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuelcell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Scott-Buccleuch