robinmoisson 2023-03-30 18:45:47 +02:00
rodzic ba206f1377
commit 2653a18215
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 9419716500078583
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -24,9 +24,10 @@ async function runStatiCrypt() {
const hasSaltFlag = isOptionSetByUser("s", yargs);
const hasShareFlag = isOptionSetByUser("share", yargs);
const positionalArguments = namedArgs._;
// validate the number of arguments
if (!hasShareFlag && !hasSaltFlag) {
const positionalArguments = namedArgs._;
if (positionalArguments.length === 0) {
yargs.showHelp();
process.exit(1);