Only print help in utils scripts if specifically requested (bugfix)
This commit is contained in:
1 parent
c7a2a32c73
commit
5165923595
2 files changed
+2
-2
No files matched your search
@@ -67,7 +67,7 @@ the next value can be typed in. Type 'quit' to close the prompt.
|
||||
if __name__ == "__main__":
|
||||
from sys import argv
|
||||
|
||||
if "-h" or "--help" in argv:
|
||||
if "-h" in argv or "--help" in argv:
|
||||
print(help)
|
||||
|
||||
if len(argv) == 1:
|
||||
|
||||
@@ -68,7 +68,7 @@ the next value can be typed in. Type 'quit' to close the prompt.
|
||||
if __name__ == "__main__":
|
||||
from sys import argv
|
||||
|
||||
if "-h" or "--help" in argv:
|
||||
if "-h" in argv or "--help" in argv:
|
||||
print(help)
|
||||
|
||||
if len(argv) == 1:
|
||||
|
||||
Reference in new issue
Block a user