Skip to content

Commit ac50c79

Browse files
committed
false: Add false.py
1 parent 7c707cc commit ac50c79

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/false.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/python3
2+
3+
import os
4+
import sys
5+
6+
7+
if __name__ == "__main__":
8+
if len(sys.argv) > 1 and sys.argv[1] == "--help":
9+
print(
10+
f"""\
11+
Usage: {os.path.basename(sys.argv[0])} [IGNORED]...
12+
13+
Return an exit status of 1.
14+
15+
Options:
16+
--help show usage information and exit"""
17+
)
18+
19+
# Exit with status 1, even if --help was passed.
20+
# (coreutils/POSIX compat)
21+
sys.exit(1)

0 commit comments

Comments
 (0)