diff --git a/README.md b/README.md index 99b57de..7047a56 100644 --- a/README.md +++ b/README.md @@ -26,13 +26,13 @@ Reverse conversion direction (EUR to specified currency, instead of specified cu Calculate interactively on stdin - -##### `q` - Quit. +##### `q`, `exit`, `quit` + Quit the program. ##### `AMOUNT CURRENCY` Convert AMOUNT euros to CURRENCY. ##### `CURRENCY AMOUNT` Convert AMOUNT CURRENCY to euros. - +##### `d`, `date` + Print the date the data is from. diff --git a/crawl.py b/crawl.py index aeb351a..98f1534 100755 --- a/crawl.py +++ b/crawl.py @@ -71,6 +71,13 @@ vals_group.add_argument( def _process_stdin(argv: str, res: utils.CurrencyResult) -> None: argv = argv.split() try: + if argv[0] in ['h', 'man', 'help']: + print("""Usage: +q | exit | quit: Quit the program. +AMOUNT CURRENCY: Convert AMOUNT euros to CURRENCY. +CURRENCY AMOUNT: Convert AMOUNT CURRENCY to euros. +d | date: Print the date which the data is from. + """) if argv[0] in ['q', 'exit', 'quit']: sys.exit() elif argv[0] in ['date', 'd']: