|
|
@@ -38,15 +38,30 @@ usage() {
|
|
|
# Using 'cat << EOF' we can easily output a multiline text. This is much
|
|
|
# better than using 'echo' for each line or using '\n' to create a new line.
|
|
|
cat <<EOF
|
|
|
-usage: tmpmail [-h] [--generate] [--browser BROWSER] [--recent] ID
|
|
|
-
|
|
|
-optional arguments:
|
|
|
--h, --help Show this help message
|
|
|
- --version Print version
|
|
|
--g, --generate Generate a new email address. You may also pass a custom username along with this flag
|
|
|
--r, --recent View the most recent email
|
|
|
--t, --text View the email as raw text, where all the HTML tags are removed
|
|
|
--b, --browser Change the browser that is used to render the HTML of the email (default: w3m)
|
|
|
+tmpmail
|
|
|
+tmpmail -h | --version
|
|
|
+tmpmail -g [ADDRESS]
|
|
|
+tmpmail [-t | -b BROWSER] -r | ID
|
|
|
+
|
|
|
+When called with no option and no argument, tmpmail lists the messages in
|
|
|
+the inbox and their numeric IDs. When called with one argument, tmpmail
|
|
|
+shows the email message with specified ID.
|
|
|
+
|
|
|
+-b, --browser BROWSER
|
|
|
+ Specify BROWSER (default: w3m) that is used to render the HTML of
|
|
|
+ the email
|
|
|
+-g, --generate [ADDRESS]
|
|
|
+ Generate a new email address, either the specified ADDRESS, or
|
|
|
+ randomly create one
|
|
|
+-h, --help
|
|
|
+ Show help
|
|
|
+-r, --recent
|
|
|
+ View the most recent email message
|
|
|
+-t, --text
|
|
|
+ View the email as raw text, where all the HTML tags are removed.
|
|
|
+ Without this option, HTML is used.
|
|
|
+--version
|
|
|
+ Show version
|
|
|
EOF
|
|
|
}
|
|
|
|