Skip to content

Commit

Permalink
fix: print help if unknown command is passed
Browse files Browse the repository at this point in the history
  • Loading branch information
AnishDe12020 committed Aug 4, 2022
1 parent 587bb88 commit 5acd3ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ const main = async () => {
UI.printHelp();
break;
default:
await reposCommand();
if (!command) {
await reposCommand();
}
UI.printHelp();
}
} catch (error) {
if (error instanceof Github.AuthError || error instanceof Github.ScopesError) {
Expand Down

0 comments on commit 5acd3ec

Please sign in to comment.