Skip to content

Commit 9e8e756

Browse files
fix: use print+sys.exit for early arg check before logging is configured
1 parent 8690784 commit 9e8e756

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

mkconcore.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ def _resolve_concore_path():
138138
return SCRIPT_DIR
139139

140140
if len(sys.argv) < 4:
141-
logging.error("usage: py mkconcore.py file.graphml sourcedir outdir [type]")
142-
logging.error(" type must be posix (macos or ubuntu), windows, or docker")
143-
quit()
141+
print("usage: py mkconcore.py file.graphml sourcedir outdir [type]")
142+
print(" type must be posix (macos or ubuntu), windows, or docker")
143+
sys.exit(1)
144144

145145
GRAPHML_FILE = sys.argv[1]
146146
TRIMMED_LOGS = True

0 commit comments

Comments
 (0)