summaryrefslogtreecommitdiff
path: root/src/help.rs
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2022-11-09 10:49:25 -0500
committerTyler Murphy <tylermurphy534@gmail.com>2022-11-09 10:49:25 -0500
commit191632ce0ab810b4773f64eaf80ad67e87200c0b (patch)
tree51ff03bc25aba69142f0583e52d850424c619b55 /src/help.rs
parentfix session pid, add uninstall sh file (diff)
downloadcrab-191632ce0ab810b4773f64eaf80ad67e87200c0b.tar.gz
crab-191632ce0ab810b4773f64eaf80ad67e87200c0b.tar.bz2
crab-191632ce0ab810b4773f64eaf80ad67e87200c0b.zip
help and version flags
Diffstat (limited to 'src/help.rs')
-rw-r--r--src/help.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/help.rs b/src/help.rs
new file mode 100644
index 0000000..422e35d
--- /dev/null
+++ b/src/help.rs
@@ -0,0 +1,11 @@
+pub fn help() {
+ let help =
+"Usage:
+ crab [-d] command [args]
+
+Options:
+ -v --version Get the current version of the package
+ -h --help Generates the crab help message
+ -d If your user is set to persist, dont save persistance";
+ println!("{}", help);
+} \ No newline at end of file