summaryrefslogtreecommitdiffhomepage
path: root/tests/cram
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-07-10 10:39:00 +0200
committerJo-Philipp Wich <jo@mein.io>2021-07-11 15:49:14 +0200
commit7e6ce0f718202856ae349970d199bbe95811a1b2 (patch)
tree8b2f32c86f18c8e47d1fad452d6d83776db8898e /tests/cram
parentb1817b3b62280d813e86dafe27e74bfe565a372a (diff)
main: introduce new flag `-x` to allow disabling specific functions
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'tests/cram')
-rw-r--r--tests/cram/test_basic.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/cram/test_basic.t b/tests/cram/test_basic.t
index 7296b5d..2c22131 100644
--- a/tests/cram/test_basic.t
+++ b/tests/cram/test_basic.t
@@ -12,7 +12,7 @@ check that ucode provides exepected help:
$ ucode | sed 's/ucode-san/ucode/'
Usage
- # ucode [-t] [-l] [-r] [-S] [-R] [-e '[prefix=]{"var": ...}'] [-E [prefix=]env.json] {-i <file> | -s "ucode script..."}
+ # ucode [-t] [-l] [-r] [-S] [-R] [-x function [-x ...]] [-e '[prefix=]{"var": ...}'] [-E [prefix=]env.json] {-i <file> | -s "ucode script..."}
-h, --help\tPrint this help (esc)
-i file\tExecute the given ucode script file (esc)
-s "ucode script..."\tExecute the given string as ucode script (esc)
@@ -23,6 +23,7 @@ check that ucode provides exepected help:
-R Enable raw code mode
-e Set global variables from given JSON object
-E Set global variables from given JSON file
+ -x Disable given function
-m Preload given module
check that ucode prints greetings: