aboutsummaryrefslogtreecommitdiff
path: root/minishell_test/args.py
diff options
context:
space:
mode:
Diffstat (limited to 'minishell_test/args.py')
-rw-r--r--minishell_test/args.py8
1 files changed, 7 insertions, 1 deletions
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 <charles.cabergs@gmail.com> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# 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"""
@@ -67,6 +69,10 @@ def parse_args():
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("""\
Test suites/group to run.