mirror of
https://github.com/YosysHQ/sby.git
synced 2025-04-12 00:23:35 +00:00
Print an error message when using "--status" with no project specified
This commit is contained in:
parent
0c84510cef
commit
fd381ade05
|
@ -61,6 +61,9 @@ status_reset = args.status_reset
|
||||||
|
|
||||||
if status_show or status_reset:
|
if status_show or status_reset:
|
||||||
target = workdir_prefix or workdir or sbyfile
|
target = workdir_prefix or workdir or sbyfile
|
||||||
|
if target is None:
|
||||||
|
print("ERROR: Specify a .sby config file or working directory to use --status.")
|
||||||
|
sys.exit(1)
|
||||||
if not os.path.isdir(target) and target.endswith('.sby'):
|
if not os.path.isdir(target) and target.endswith('.sby'):
|
||||||
target = target[:-4]
|
target = target[:-4]
|
||||||
if not os.path.isdir(target):
|
if not os.path.isdir(target):
|
||||||
|
|
Loading…
Reference in a new issue