We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bb8781 commit 5e31c41Copy full SHA for 5e31c41
1 file changed
src/bin.ts
@@ -18,14 +18,16 @@ function shouldShowCustomHelp(args: string[]): boolean {
18
async function main(): Promise<void> {
19
const args = process.argv.slice(2);
20
21
- // Intercept top-level help before Stricli
22
- if (shouldShowCustomHelp(args)) {
23
- await printCustomHelp(process.stdout);
24
- return;
25
- }
26
-
27
try {
28
- await withTelemetry(() => run(app, args, buildContext(process)));
+ await withTelemetry(async () => {
+ // Intercept top-level help before Stricli
+ if (shouldShowCustomHelp(args)) {
+ await printCustomHelp(process.stdout);
+ return;
+ }
+
29
+ run(app, args, buildContext(process));
30
+ });
31
} catch (err) {
32
process.stderr.write(`${error("Error:")} ${formatError(err)}\n`);
33
process.exit(getExitCode(err));
0 commit comments