aboutsummaryrefslogtreecommitdiff
path: root/minishell_test/args.py
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-02-24 08:59:25 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-02-24 09:09:52 +0100
commitad7233a4a5f45be6f991ed38a7351a6ef826356b (patch)
tree7557829a45109e5ac6d83ffd8e40bcf331749f4c /minishell_test/args.py
parent1399a01dc09ed1477b740bd320580ce3dacfe3cf (diff)
downloadminishell_test-ad7233a4a5f45be6f991ed38a7351a6ef826356b.tar.gz
minishell_test-ad7233a4a5f45be6f991ed38a7351a6ef826356b.tar.bz2
minishell_test-ad7233a4a5f45be6f991ed38a7351a6ef826356b.zip
Fixing #17 - Incorporate the try script in the command arguments
Diffstat (limited to 'minishell_test/args.py')
-rw-r--r--minishell_test/args.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/minishell_test/args.py b/minishell_test/args.py
index e88ae7f..ef47081 100644
--- a/minishell_test/args.py
+++ b/minishell_test/args.py
@@ -6,7 +6,7 @@
# By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/07/15 18:24:32 by charles #+# #+# #
-# Updated: 2021/02/24 08:03:17 by cacharle ### ########.fr #
+# Updated: 2021/02/24 08:48:15 by cacharle ### ########.fr #
# #
# ############################################################################ #
@@ -22,9 +22,7 @@ def parse_args():
parser = argparse.ArgumentParser(
description="Test for the minishell project of school 42.",
formatter_class=argparse.RawTextHelpFormatter,
- epilog=textwrap.dedent("""
- Made by cacharle - https://cacharle.xyz
- """)
+ epilog="Made by cacharle - https://cacharle.xyz"
)
parser.add_argument(
"-p", "--path", default=config.MINISHELL_DIR,
@@ -35,6 +33,13 @@ def parse_args():
help="Print available test suites"
)
parser.add_argument(
+ "-t", "--try-cmd", metavar="COMMAND",
+ help=textwrap.dedent("""\
+ Run a custom command like this test would
+ (the only environment variable passed to your executable are TERM and PATH)
+ """)
+ )
+ parser.add_argument(
"-k", "--check-leaks", action="store_true",
help="Run valgrind on tests (disable usual comparison with bash)"
)