Update dnet-stats.py

Allow for upper or lower case arguments.
This commit is contained in:
Justin Oros
2024-11-18 10:58:25 -07:00
committed by GitHub
parent cbe2c6975e
commit b81e5051c0
+2 -2
View File
@@ -74,9 +74,9 @@ project = None
# Check if the arguments are provided and valid # Check if the arguments are provided and valid
for i in range(1, len(sys.argv)): 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() 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] user = sys.argv[i + 1]
# Ensure both project and user are present # Ensure both project and user are present