Skip to content

Commit 419ecda

Browse files
committed
fix: --help
1 parent 013f867 commit 419ecda

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/common/services/commands-service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ export class CommandsService implements ICommandsService {
142142
" "
143143
) + " "
144144
: "";
145-
const commandHelp = `tns ${command}--help`;
145+
const commandHelp = `ns ${command}--help`;
146146
this.$logger.printMarkdown(
147-
`\`Run '${commandHelp}' for more information.\``
147+
`__Run \`${commandHelp}\` for more information.__`
148148
);
149149
return;
150150
}

lib/options.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ export class Options {
354354
opts[this.getDashedOptionName(key)] = value;
355355
});
356356

357-
const parsed = yargs(process.argv.slice(2));
357+
const parsed = yargs(process.argv.slice(2)).help(false);
358358
this.initialArgv = parsed.argv;
359359
this.argv = parsed.options(<any>opts).argv;
360360

0 commit comments

Comments
 (0)