diff options
| author | Fridon <[email protected]> | 2022-06-21 23:06:31 +0400 |
|---|---|---|
| committer | Fridon <[email protected]> | 2022-06-21 23:06:31 +0400 |
| commit | 336862f977962d3cbb88e9b7bcf288045c377ac5 (patch) | |
| tree | 5a83d5ec20ed2fc90c39e108ba7b59e97167a76f /src | |
| parent | 9e941040b9e3e16b05c3e5309619e5885de183a1 (diff) | |
| download | countryfetch-336862f977962d3cbb88e9b7bcf288045c377ac5.tar.xz countryfetch-336862f977962d3cbb88e9b7bcf288045c377ac5.zip | |
add case handler for no arguments
Diffstat (limited to 'src')
| -rw-r--r-- | src/app.ts | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |
