cli_helper 0.1.9.1 → 0.2.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 +4 -4
- data/cli_helper.gemspec +1 -1
- data/lib/cli_helper.rb +4 -3
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 354802b44915c4b6c1ec801600d7b52092cb37a803ef8732e9000e717495be00
|
|
4
|
+
data.tar.gz: c88c7edf1ac82053222444eac814c5d4e640afbb9d36a8a97c9eefaf3a1f3333
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c63952b7391a45c4cc079ed700e8acd3bb3dae2d7535316c6fbe1cf9e4c44bf52c8a4c3d2233e126e7b839c22d4e92cf224f750839626474b00e7562669d3413
|
|
7
|
+
data.tar.gz: 527a6889fc9cb9b57f52f20adcf674b974da1afaea3e7afbefb129ad21b4154583b02131f1bc7a5a5493774f3564da3e74905c10c035712a1e144e3d4a13ba82
|
data/cli_helper.gemspec
CHANGED
data/lib/cli_helper.rb
CHANGED
|
@@ -195,12 +195,13 @@ module CliHelper
|
|
|
195
195
|
# parameters provided via a block. Create '?'
|
|
196
196
|
# for all boolean parameters that have a '--name' flag form.
|
|
197
197
|
# Returns a Slop::Options object
|
|
198
|
-
def cli_helper( my_banner='',
|
|
198
|
+
def cli_helper( my_banner='',
|
|
199
199
|
slop_options_config={}
|
|
200
200
|
)
|
|
201
|
-
default_config
|
|
201
|
+
default_config = { suppress_errors: configatron.suppress_errors }
|
|
202
|
+
options_hash = default_config.merge(slop_options_config)
|
|
202
203
|
|
|
203
|
-
param = Slop::Options.new(
|
|
204
|
+
param = Slop::Options.new( **options_hash )
|
|
204
205
|
|
|
205
206
|
if my_banner.empty?
|
|
206
207
|
param.banner = "Usage: #{my_name} [options] ..."
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cli_helper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dewayne VanHoozer
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-02-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: configatron
|
|
@@ -185,7 +185,7 @@ licenses:
|
|
|
185
185
|
- You want it? It's yours.
|
|
186
186
|
metadata:
|
|
187
187
|
allowed_push_host: https://rubygems.org
|
|
188
|
-
post_install_message:
|
|
188
|
+
post_install_message:
|
|
189
189
|
rdoc_options: []
|
|
190
190
|
require_paths:
|
|
191
191
|
- lib
|
|
@@ -200,8 +200,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
200
200
|
- !ruby/object:Gem::Version
|
|
201
201
|
version: '0'
|
|
202
202
|
requirements: []
|
|
203
|
-
rubygems_version: 3.
|
|
204
|
-
signing_key:
|
|
203
|
+
rubygems_version: 3.2.7
|
|
204
|
+
signing_key:
|
|
205
205
|
specification_version: 4
|
|
206
206
|
summary: An encapsulation of an integration of slop, nenv, inifile and configatron.
|
|
207
207
|
test_files: []
|