aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFridon <[email protected]>2022-06-22 00:07:16 +0400
committerFridon <[email protected]>2022-06-22 00:07:16 +0400
commit66b55626a924874b8946de8d7df57c94a66fd350 (patch)
tree1137ff06d642be1669ad43add2cc0bcb71e7aa58
parentcab126423c647aeac1a2a692b4918772d4e56150 (diff)
downloadcountryfetch-66b55626a924874b8946de8d7df57c94a66fd350.tar.xz
countryfetch-66b55626a924874b8946de8d7df57c94a66fd350.zip
update help and readme
-rw-r--r--README.md1
-rw-r--r--src/util/help.ts6
2 files changed, 6 insertions, 1 deletions
diff --git a/README.md b/README.md
index 0afed34..3f40d3d 100644
--- a/README.md
+++ b/README.md
@@ -47,6 +47,7 @@ countryfetch <arguments>
### Arguments:
- `<country_name>` - Find country information by name. Country names cannot have whitespaces, use kebab-case or snake_case instead.
+- `capital <capital>` - Find country to which the specified capital belongs.
- `sync` - Fetches data from API and stores it in `~/.cache/countryfetch/countries.json`. This is done automatically, but can be triggered manually.
- `random` - Get random country information.
diff --git a/src/util/help.ts b/src/util/help.ts
index e935f2c..80b7e57 100644
--- a/src/util/help.ts
+++ b/src/util/help.ts
@@ -14,7 +14,11 @@ export function help(): void {
"\n\t\tPrint information about a random country.",
"\n",
"\n\t<country_name>",
- "\n\t\tPrint information about a specific country.",
+ "\n\t\tPrint information about the specified country.",
+ "\n",
+ "\n",
+ "\n\tcapital <capital>",
+ "\n\t\tPrint country to which the specified capital belongs.",
"\n",
"\nEXAMPLE:\n",
"\tcountryfetch germany",