mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 00:16:23 +02:00
Generate outputs an error instead of a stacktrace on arg error
This commit is contained in:
parent
1c71c78b01
commit
75b08d2aa6
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ def main():
|
||||||
print("Usage:")
|
print("Usage:")
|
||||||
print(" generate <outfile> <version> < input.json")
|
print(" generate <outfile> <version> < input.json")
|
||||||
print()
|
print()
|
||||||
raise RuntimeError("Arg error")
|
sys.exit(1)
|
||||||
|
|
||||||
outfile = sys.argv[1]
|
outfile = sys.argv[1]
|
||||||
version = sys.argv[2]
|
version = sys.argv[2]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue