whet 0.6.1 → 0.6.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/bin/whet/Whet.js +3 -1
- package/package.json +1 -1
package/bin/whet/Whet.js
CHANGED
|
@@ -26,7 +26,7 @@ class Whet_Fields_ {
|
|
|
26
26
|
if (entryUrl != thisUrl) {
|
|
27
27
|
return;
|
|
28
28
|
};
|
|
29
|
-
Whet_Fields_.program.enablePositionalOptions().passThroughOptions().description("Project tooling.").usage("[options] [command] [+ [command]...]").version("0.6.
|
|
29
|
+
Whet_Fields_.program.enablePositionalOptions().passThroughOptions().description("Project tooling.").usage("[options] [command] [+ [command]...]").version("0.6.2", "-v, --version").allowUnknownOption(true).allowExcessArguments(true).showSuggestionAfterError(true).helpOption(false).option("-p, --project <file>", "project to run", "Project.mjs").addOption(new Option("-l, --log-level <level>", "log level, a string/number")["default"]("info").env("WHET_LOG_LEVEL")).option("--no-pretty", "disable pretty logging").option("-q, --quiet", "quiet output: warn level + no color (the default when stdout is not a TTY)").option("--profile <format>", "enable profiling, export to whet-profile.json on exit (format: json or trace, default: json)").exitOverride();
|
|
30
30
|
try {
|
|
31
31
|
Whet_Fields_.program.parse();
|
|
32
32
|
}catch (_g) {
|
|
@@ -79,6 +79,7 @@ class Whet_Fields_ {
|
|
|
79
79
|
if (((e) instanceof Error)) {
|
|
80
80
|
Log.log(50, ...[e.stack]);
|
|
81
81
|
};
|
|
82
|
+
process.exitCode = 1;
|
|
82
83
|
};
|
|
83
84
|
try {
|
|
84
85
|
Whet_Fields_.program.help();
|
|
@@ -159,6 +160,7 @@ class Whet_Fields_ {
|
|
|
159
160
|
return;
|
|
160
161
|
};
|
|
161
162
|
Log.log(50, ...["Error while executing command.", {"error": err}]);
|
|
163
|
+
process.exitCode = 1;
|
|
162
164
|
});
|
|
163
165
|
};
|
|
164
166
|
initProm.then(function (_) {
|
package/package.json
CHANGED