Verified Commit 92487316 authored by Fabio Bonfiglio's avatar Fabio Bonfiglio 💾
Browse files

Help and usage message corrections

parent 51c2e803
......@@ -8,15 +8,15 @@ Now with [Telegram](https://telegram.org/) notifications support !
## Usage
```sh
$ ./checknet [-h][-q][-h <remoteHost>][-f <fileName>]
$ ./checknet [-h][-t <chatID>][-q][-r <remoteHost>][-f <fileName>]
```
Option | Description
:-----:|:------------
-h | Display help message and exit.
-t | Telegram chat-ID to use for notifications. See http://t.me/fbo_checknet_bot .
-q | Quiet mode. Doesn't show live log.
-r remoteHost | Use a custom remote host, instead of default `google.com`
-f fileName.csv | Custom destination file. Default is `checknet.csv`
`-h` | Display help message and exit.
`-t chatID` | Telegram chat-ID to use for notifications. See http://t.me/fbo_checknet_bot .
`-q` | Quiet mode. Doesn't show live log.
`-r remoteHost` | Use a custom remote host, instead of default `google.com`
`-f fileName.csv` | Custom destination file. Default is `checknet.csv`
To run it in the background and for it to continue running when leaving the (remote) terminal, you can do:
```sh
......
......@@ -37,9 +37,9 @@ echo -e "\nchecknet v0.1.0 - by Fabio Bonfiglio"
while getopts ht:qr:f: option; do
case "${option}" in
h)
echo -e "\nUsage: $0 [-h][-d][-r][-f <file name>]"
echo -e "\nUsage: $0 [-h][-t <chat id>][-q][-r <remote host>][-f <file name>]"
echo -e "\nOptions:\n\n\t-h\t\tDisplay this help message."
echo -e "\t-t\t\tTelegram chat ID to use for notifications. See http://t.me/fbo_checknet_bot"
echo -e "\t-t chatID\t\tTelegram chat ID to use for notifications. See http://t.me/fbo_checknet_bot"
echo -e "\t-q\t\tQuiet. Don't show live log feed."
echo -e "\t-r remoteHost\tThe remote host name to reach for."
echo -e "\t-f fileName.csv\tIndicate a file path and name where to save csv entries.\n"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment