Skip to content

Commit

Permalink
Fix message when invoked with --help
Browse files Browse the repository at this point in the history
  • Loading branch information
smikitky committed Apr 12, 2024
1 parent d693b07 commit 827e9b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ const main = async () => {
const args = parser.parse();

if (args.help || args._args.length < 1) {
if (args._args.length < 1)
console.log(pc.red('No input files are specified.'));
if (!args.help) console.log(pc.red('No input files are specified.'));
console.log(
pc.yellow('Usage: chatgpt-md-translator [options] <file> [<file>...]')
);
Expand Down

0 comments on commit 827e9b2

Please sign in to comment.