Commit 94514899 authored by Mathieu Giraud's avatar Mathieu Giraud

demo/: should should have a !NO_EXTRA directive

Opens #30.
parent 2a21dfd9
# The --extra option allows to add something after the first word every command.
./should -v --extra You demo/hello.should ; true
$ 'You' is added right after 'echo'
: echo You hello, world
./should -v --extra They demo/no.should ; true
$ 'They' is not added because of NO_EXTRA
0: echo They hello, world
\ No newline at end of file
# A !NO_EXTRA directive tell to ignore any --extra arguments.
# See demo/extra.should
!NO_EXTRA:
echo hello, world
$ No extra arguments were given to `echo`
r1:^hello, world$
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment