mirror of
https://github.com/tests-always-included/mo.git
synced 2025-11-19 23:34:32 +01:00
Handling double-hyphens
This commit is contained in:
1
tests/double-hyphen.expected
Normal file
1
tests/double-hyphen.expected
Normal file
@@ -0,0 +1 @@
|
||||
cat: --help: No such file or directory
|
||||
5
tests/double-hyphen.sh
Executable file
5
tests/double-hyphen.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# This should display a message indicating that the file --help
|
||||
# could not be found. It should not display a help messsage.
|
||||
cd "${0%/*}"
|
||||
../mo -- --help 2>&1
|
||||
1
tests/invalid-option.expected
Normal file
1
tests/invalid-option.expected
Normal file
@@ -0,0 +1 @@
|
||||
cat: --something: No such file or directory
|
||||
5
tests/invalid-option.sh
Executable file
5
tests/invalid-option.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# This should display a message indicating that the file --something
|
||||
# could not be found.
|
||||
cd "${0%/*}"
|
||||
../mo --something 2>&1
|
||||
Reference in New Issue
Block a user