aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorFridon <[email protected]>2022-06-21 22:56:51 +0400
committerFridon <[email protected]>2022-06-21 22:56:51 +0400
commit9e941040b9e3e16b05c3e5309619e5885de183a1 (patch)
tree8d16bd4e35f81ae72c9a4cda6c9750ef76f4ab8e /src/util
parent5f17dfba0040b240f7d79f12420331ae62071bfb (diff)
downloadcountryfetch-9e941040b9e3e16b05c3e5309619e5885de183a1.tar.xz
countryfetch-9e941040b9e3e16b05c3e5309619e5885de183a1.zip
fix search limitation, add help option and minor changes
Diffstat (limited to 'src/util')
-rw-r--r--src/util/help.ts24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/util/help.ts b/src/util/help.ts
new file mode 100644
index 0000000..e935f2c
--- /dev/null
+++ b/src/util/help.ts
@@ -0,0 +1,24 @@
+export function help(): void {
+ console.log(
+ "\ncountryfetch\n",
+ "\tFetch information about countries",
+ "\n",
+ "\nUSAGE\n",
+ "\tcountryfetch <ARGS>",
+ "\n",
+ "\nARGS:\n",
+ "\tsync",
+ "\n\t\tSynchronize database. Stores countries' data in ~/.cache/conntryfetch/countries.json.",
+ "\n",
+ "\n\trandom",
+ "\n\t\tPrint information about a random country.",
+ "\n",
+ "\n\t<country_name>",
+ "\n\t\tPrint information about a specific country.",
+ "\n",
+ "\nEXAMPLE:\n",
+ "\tcountryfetch germany",
+ "\n\t\tPrints information about Germany",
+ "\n"
+ );
+}