mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Shared: Minor tweaks to model generator script
Co-authored-by: Michael Nebel <michaelnebel@github.com>
This commit is contained in:
committed by
GitHub
parent
c6d95ceeb0
commit
14bdc1ab22
@@ -75,7 +75,7 @@ class Generator:
|
||||
|
||||
@staticmethod
|
||||
def make():
|
||||
'''Create a generator instance based on command line arguments.'''
|
||||
# Create a generator instance based on command line arguments.
|
||||
if any(s == "--help" for s in sys.argv):
|
||||
printHelp()
|
||||
sys.exit(0)
|
||||
@@ -85,7 +85,7 @@ class Generator:
|
||||
sys.argv.remove("--language")
|
||||
sys.argv.remove(language)
|
||||
else:
|
||||
print("Error: Language not specified. Use --language <language>.")
|
||||
printHelp()
|
||||
sys.exit(0)
|
||||
|
||||
generator = Generator(language=language)
|
||||
|
||||
Reference in New Issue
Block a user