Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bats-core/bats-assert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Tombol <zoltan.tombol@gmail.com>2016-02-26 21:23:20 +0300
committerZoltan Tombol <zoltan.tombol@gmail.com>2016-02-26 21:23:20 +0300
commitbd7ece6cb495ba2f4cb7360226c6ba4966c1b7f6 (patch)
tree01692a66e9f6f935953da4a634fe8a423ca59d42 /README.md
parentc529cbe996cc01d19d000048ff691014d150f7c2 (diff)
Fix -- handling in output and line matching functions
Diffstat (limited to 'README.md')
-rw-r--r--README.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/README.md b/README.md
index 5636351..6e99809 100644
--- a/README.md
+++ b/README.md
@@ -653,6 +653,23 @@ This option and partial matching (`--partial` or `-p`) are mutually
exclusive. An error is displayed when used simultaneously.
+## Options
+
+For functions that have options, `--` disables option parsing for the
+remaining arguments to allow using arguments identical to one of the
+allowed options.
+
+```bash
+assert_output -- '-p'
+```
+
+Specifying `--` as an argument is similarly simple.
+
+```bash
+refute_line -- '--'
+```
+
+
<!-- REFERENCES -->
[bats]: https://github.com/sstephenson/bats