Update dnet-stats.py

Allow for upper or lower case arguments.
This commit is contained in:
justin authored and GitHub committed 2024-11-18 10:58:25 -07:00
1 parent cbe2c6975e
commit b81e5051c0
1 file changed
+2 -2
+2 -2
View File
@@ -74,9 +74,9 @@ project = None
# Check if the arguments are provided and valid
for i in range(1, len(sys.argv)):
if sys.argv[i] == "-Project" and i + 1 < len(sys.argv):
if sys.argv[i].lower() == "-project" and i + 1 < len(sys.argv):
project = sys.argv[i + 1].upper()
if sys.argv[i] == "-User" and i + 1 < len(sys.argv):
if sys.argv[i].lower() == "-user" and i + 1 < len(sys.argv):
user = sys.argv[i + 1]
# Ensure both project and user are present