We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e50f73 commit 2528e8fCopy full SHA for 2528e8f
src/nologin.py
@@ -0,0 +1,22 @@
1
+#!/usr/bin/python3
2
+
3
+import sys
4
+from optparse import OptionParser
5
6
7
+def nologin():
8
+ print("This account is currently not available.")
9
+ sys.exit(1)
10
11
12
+if __name__ == "__main__":
13
+ parser = OptionParser(
14
+ usage="Usage: %prog [IGNORED]...",
15
+ description="Politely refuse a login.",
16
+ add_help_option=False,
17
+ )
18
+ parser.add_option("--help", action="help", help="show usage information and exit")
19
20
+ parser.parse_args()
21
22
+ nologin()
0 commit comments