Skip to content

Commit 4b1ede2

Browse files
author
Juhyung Park
committed
Show help message when a user gives no action
1 parent b8affd6 commit 4b1ede2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ commander.on("--help", () => {
3737
});
3838

3939
async function main(action: string, option: Option) {
40+
if (!action) {
41+
commander.outputHelp();
42+
return;
43+
}
4044
const cckey = await CCKey.create({});
4145
try {
4246
const accountType = getOpt(option, "account-type") as AccountType;

0 commit comments

Comments
 (0)