aboutsummaryrefslogtreecommitdiff
path: root/docs/options.rst
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-02-26 15:55:26 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-02-26 15:58:27 +0100
commit86355a6fd7375f954bf92cb49a14c718610c4d60 (patch)
treec9f10c225fe6cec7439343dbc6dbf0e8c973c71e /docs/options.rst
parentc2ca0d297b8e067c5e315500fb2f35f50ff6af8a (diff)
downloadminishell_test-86355a6fd7375f954bf92cb49a14c718610c4d60.tar.gz
minishell_test-86355a6fd7375f954bf92cb49a14c718610c4d60.tar.bz2
minishell_test-86355a6fd7375f954bf92cb49a14c718610c4d60.zip
Added command line argument documentation draft
Diffstat (limited to 'docs/options.rst')
-rw-r--r--docs/options.rst69
1 files changed, 69 insertions, 0 deletions
diff --git a/docs/options.rst b/docs/options.rst
index 56a8c55..7c29529 100644
--- a/docs/options.rst
+++ b/docs/options.rst
@@ -1,2 +1,71 @@
Command line Options
====================
+
+.. code-block:: txt
+
+ usage: minishell_test [-h] [-p PATH] [-l] [-t COMMAND] [-k] [-r BEGIN END]
+ [--show-range] [-x] [-v] [-b] [-n] [-m] [-g]
+ [suite ...]
+
+.. program:: minishell_test
+
+.. option:: suite
+
+ Test suites/group to run.
+ It tries to be smart and autocomplete the suite name
+ (e.g ./run int -> ./run preprocess/interpolation)
+
+
+.. option:: -h, --help
+
+ show this help message and exit
+
+.. option:: -p <PATH>, --path <PATH>
+
+ Path to minishell directory
+
+.. option:: -l, --list
+
+ Print available test suites
+
+.. option:: -t <COMMAND>, --try <COMMAND>
+
+ Run a custom command like this test would
+ (the only environment variable passed to your executable are TERM and PATH)
+
+.. option:: -k, --check-leaks
+
+ Run valgrind on tests (disable usual comparison with bash)
+
+.. option:: -r <BEGIN> <END>, --range <BEGIN> <END>
+
+ Range of test index to run (imply --show-index)
+
+.. option:: --show-range
+
+ Show test index (useful with --range)
+
+.. option:: -x, --exit-first
+
+ Exit on first fail
+
+.. option:: -v, --verbose
+
+ Increase verbosity level (e.g -vv == 2)
+
+.. option:: -b, --bonus
+
+ Enable bonus tests
+
+.. option:: -n, --no-bonus
+
+ Disable bonus tests
+
+.. option:: -m, --make
+
+ Make minishell and exit
+
+.. option:: -g, --pager
+
+ After running the test, display the result in a pager of your choice
+