diff options
author | Zoltan Tombol <zoltan.tombol@gmail.com> | 2016-02-26 21:23:20 +0300 |
---|---|---|
committer | Zoltan Tombol <zoltan.tombol@gmail.com> | 2016-02-26 21:23:20 +0300 |
commit | bd7ece6cb495ba2f4cb7360226c6ba4966c1b7f6 (patch) | |
tree | 01692a66e9f6f935953da4a634fe8a423ca59d42 /README.md | |
parent | c529cbe996cc01d19d000048ff691014d150f7c2 (diff) |
Fix -- handling in output and line matching functions
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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 |