diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-09-13 14:34:57 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-09-13 14:50:49 +0200 |
| commit | 13fa2431ce628fbd8e64b18e40bb0eda2ae46058 (patch) | |
| tree | cdd60ca00241afd4ffc14e7218ddf379fb1268ec /src/args.py | |
| parent | 1caecc346a24c7e3e10e310ff564e8ec0e760ffa (diff) | |
| download | minishell_test-13fa2431ce628fbd8e64b18e40bb0eda2ae46058.tar.gz minishell_test-13fa2431ce628fbd8e64b18e40bb0eda2ae46058.tar.bz2 minishell_test-13fa2431ce628fbd8e64b18e40bb0eda2ae46058.zip | |
Added pager option
Diffstat (limited to 'src/args.py')
| -rw-r--r-- | src/args.py | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/args.py b/src/args.py index 9f31d98..a7dda05 100644 --- a/src/args.py +++ b/src/args.py @@ -6,7 +6,7 @@ # By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/07/15 18:24:32 by charles #+# #+# # -# Updated: 2020/09/12 02:21:51 by charles ### ########.fr # +# Updated: 2020/09/13 14:45:15 by charles ### ########.fr # # # # ############################################################################ # @@ -22,29 +22,33 @@ def parse_args(): ) parser.add_argument( "-v", "--verbose", action="count", - help="increase verbosity level (e.g -vv == 2)" + help="Increase verbosity level (e.g -vv == 2)" ) parser.add_argument( "-b", "--bonus", action="store_true", - help="enable bonus tests" + help="Enable bonus tests" ) parser.add_argument( "-n", "--no-bonus", action="store_true", - help="disable bonus tests" + help="Disable bonus tests" ) parser.add_argument( "-l", "--list", action="store_true", - help="print available test suites" + help="Print available test suites" ) parser.add_argument( "-m", "--make", action="store_true", - help="make minishell and exit" + help="Make minishell and exit" + ) + parser.add_argument( + "-p", "--pager", action="store_true", + help="After running the test, display the result in a pager of your choice" ) parser.add_argument( "suites", nargs='*', metavar="suite", - help="test suites/group to run, " - "It tries to be smart and auto complete the suite name " - "you put in (e.g ./run int -> ./run preprocess/interpolation)" + help="Test suites/group to run. " + "It tries to be smart and autocomplete the suite name " + "(e.g ./run int -> ./run preprocess/interpolation)" ) tmp = parser.parse_args() if tmp.verbose is None: |
