shellopts 2.6.7 → 2.7.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/lib/shellopts/version.rb +1 -1
- data/lib/shellopts.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3906747a497d13ee1e7ba9c102184c8b331f8a02333e6a96c2b7c7c9748c6006
|
|
4
|
+
data.tar.gz: e4b407b8ab49895b7b2e222d59a35fcb88bb3df75449f94bbb797dbb80e5b362
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f008f01dcc0909988aeed3e1e0def4bf9372bd31c5bdad0d3c65efb56a4b841324984ddce8bf59a49a0d16b6375538322c581489bdb64d74866c4797c39aa45
|
|
7
|
+
data.tar.gz: 44d1fe0700802ef288b5a087edcfb58110cc9b51e56b2282dc70bce8b161efa45f3601866709f317b81e42c47f16fd5379949da74eff76193ae31286e3717443
|
data/lib/shellopts/version.rb
CHANGED
data/lib/shellopts.rb
CHANGED
|
@@ -400,6 +400,11 @@ module ShellOpts
|
|
|
400
400
|
end
|
|
401
401
|
end
|
|
402
402
|
|
|
403
|
+
# The full path to the program. This is initialized when shellopts.rb is
|
|
404
|
+
# loaded so it is not affected by later changes of directory
|
|
405
|
+
@@PROGRAM_PATH = File.absolute_path($PROGRAM_NAME)
|
|
406
|
+
def self.path = @@PROGRAM_PATH
|
|
407
|
+
|
|
403
408
|
def self.process(spec, argv, silent: nil, quiet: nil, verbose: nil, debug: nil, **opts)
|
|
404
409
|
constrain silent, String, true, false, nil
|
|
405
410
|
constrain quiet, String, true, false, nil
|