diff --git a/README.md b/README.md index cc4aab9..3913468 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # tiramisu-cmdline-parser -Parser for command-line options and arguments using Tiramisu engine. +Python3 parser for command-line options and arguments using Tiramisu engine. # simple example @@ -26,7 +26,7 @@ parser.parse_args() print('result:', config.value.dict()) ``` -``` +```bash [gnunux@localhost tiramisu-parser]$ ./prog.py -h usage: prog.py [-h] [-v] var @@ -38,23 +38,23 @@ optional arguments: -v, --verbosity increase output verbosity ``` -``` +```bash [gnunux@localhost tiramisu-parser]$ ./prog.py -v usage: prog.py [-h] [-v] var prog.py: error: the following arguments are required: var ``` -``` +```bash [gnunux@localhost tiramisu-parser]$ ./prog.py test result: {'var': 'test', 'verbosity': False, 'v': False} ``` -``` +```bash [gnunux@localhost tiramisu-parser]$ ./prog.py -v test result: {'var': 'test', 'verbosity': True, 'v': True} ``` -``` +```bash [gnunux@localhost tiramisu-parser]$ ./prog.py --verbosity test result: {'var': 'test', 'verbosity': True, 'v': True} ```