kopia lustrzana https://github.com/robinmoisson/staticrypt
typo
rodzic
ba206f1377
commit
2653a18215
|
@ -24,9 +24,10 @@ async function runStatiCrypt() {
|
||||||
const hasSaltFlag = isOptionSetByUser("s", yargs);
|
const hasSaltFlag = isOptionSetByUser("s", yargs);
|
||||||
const hasShareFlag = isOptionSetByUser("share", yargs);
|
const hasShareFlag = isOptionSetByUser("share", yargs);
|
||||||
|
|
||||||
|
const positionalArguments = namedArgs._;
|
||||||
|
|
||||||
// validate the number of arguments
|
// validate the number of arguments
|
||||||
if (!hasShareFlag && !hasSaltFlag) {
|
if (!hasShareFlag && !hasSaltFlag) {
|
||||||
const positionalArguments = namedArgs._;
|
|
||||||
if (positionalArguments.length === 0) {
|
if (positionalArguments.length === 0) {
|
||||||
yargs.showHelp();
|
yargs.showHelp();
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
|
Ładowanie…
Reference in New Issue