puvox-library 1.0.21 → 1.0.23
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.
- package/library_standard.js +5 -3
- package/package.json +1 -1
package/library_standard.js
CHANGED
@@ -588,9 +588,7 @@ const puvox_library =
|
|
588
588
|
|
589
589
|
argvsString(){ return process.argv[2]; },
|
590
590
|
argvsArray(){ return process.argv.slice(2); },
|
591
|
-
argvs(){
|
592
|
-
|
593
|
-
argv(which, def = undefined){
|
591
|
+
argvs(){
|
594
592
|
let argvs= this.argvsArray();
|
595
593
|
let KeyValues= {};
|
596
594
|
for (let i=0; i<argvs.length; i++){
|
@@ -617,6 +615,10 @@ const puvox_library =
|
|
617
615
|
KeyValues = Object.assign (KeyValues, pair);
|
618
616
|
}
|
619
617
|
}
|
618
|
+
return KeyValues;
|
619
|
+
},
|
620
|
+
argv(which, def = undefined){
|
621
|
+
let KeyValues= this.argvs();
|
620
622
|
return (which in KeyValues ? KeyValues[which] : def);
|
621
623
|
},
|
622
624
|
argvIsSet(which){
|