From a142666db6352aae81c921cfc5cb81f091355e32 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 5 Feb 2021 20:15:08 +0100 Subject: Added option to change path to minishell directory (#12) --- minishell_test/args.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'minishell_test/args.py') diff --git a/minishell_test/args.py b/minishell_test/args.py index fb12841..d5f565f 100644 --- a/minishell_test/args.py +++ b/minishell_test/args.py @@ -6,13 +6,15 @@ # By: charles +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/07/15 18:24:32 by charles #+# #+# # -# Updated: 2021/02/05 17:14:41 by charles ### ########.fr # +# Updated: 2021/02/05 20:12:53 by charles ### ########.fr # # # # ############################################################################ # import argparse import textwrap +import minishell_test.config as config + def parse_args(): """Parse command line arguments""" @@ -66,6 +68,10 @@ def parse_args(): "-g", "--pager", action="store_true", help="After running the test, display the result in a pager of your choice" ) + parser.add_argument( + "-p", "--path", default=config.MINISHELL_DIR, + help="Path to minishell directory" + ) parser.add_argument( "suites", nargs='*', metavar="suite", help=textwrap.dedent("""\ -- cgit