@prnv/tuck 1.5.1 → 1.5.2
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/dist/index.js +2 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10730,10 +10730,7 @@ init_git();
|
|
|
10730
10730
|
var program = new Command16();
|
|
10731
10731
|
program.name("tuck").description(DESCRIPTION).version(VERSION, "-v, --version", "Display version number").configureOutput({
|
|
10732
10732
|
outputError: (str, write) => write(chalk5.red(str))
|
|
10733
|
-
}).addHelpText("
|
|
10734
|
-
program.configureHelp({
|
|
10735
|
-
formatHelp: () => ""
|
|
10736
|
-
});
|
|
10733
|
+
}).addHelpText("before", customHelp(VERSION)).helpOption("-h, --help", "Display this help message").showHelpAfterError(false);
|
|
10737
10734
|
program.addCommand(initCommand);
|
|
10738
10735
|
program.addCommand(addCommand);
|
|
10739
10736
|
program.addCommand(removeCommand);
|
|
@@ -10802,9 +10799,7 @@ var runDefaultAction = async () => {
|
|
|
10802
10799
|
console.log();
|
|
10803
10800
|
}
|
|
10804
10801
|
};
|
|
10805
|
-
var hasCommand = process.argv.slice(2).some(
|
|
10806
|
-
(arg) => !arg.startsWith("-") && arg !== "--help" && arg !== "-h"
|
|
10807
|
-
);
|
|
10802
|
+
var hasCommand = process.argv.slice(2).some((arg) => !arg.startsWith("-") && arg !== "--help" && arg !== "-h");
|
|
10808
10803
|
process.on("uncaughtException", handleError);
|
|
10809
10804
|
process.on("unhandledRejection", (reason) => {
|
|
10810
10805
|
handleError(reason instanceof Error ? reason : new Error(String(reason)));
|