aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFridon <[email protected]>2022-06-21 23:06:31 +0400
committerFridon <[email protected]>2022-06-21 23:06:31 +0400
commit336862f977962d3cbb88e9b7bcf288045c377ac5 (patch)
tree5a83d5ec20ed2fc90c39e108ba7b59e97167a76f
parent9e941040b9e3e16b05c3e5309619e5885de183a1 (diff)
downloadcountryfetch-336862f977962d3cbb88e9b7bcf288045c377ac5.tar.xz
countryfetch-336862f977962d3cbb88e9b7bcf288045c377ac5.zip
add case handler for no arguments
-rw-r--r--src/app.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/app.ts b/src/app.ts
index 5edccbe..09db256 100644
--- a/src/app.ts
+++ b/src/app.ts
@@ -8,6 +8,9 @@ export async function app() {
await countries.sync();
switch (command) {
+ case undefined:
+ help();
+ break;
case "sync":
await countries.sync({ force: true });
break;