From 7e8613e6fbb1f0a6d04353a721c0ac6c19d331ea Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Thu, 29 Nov 2018 22:49:35 +0100 Subject: [PATCH] update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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} ```