Skip to content

Commit

Permalink
Print an error message when using "--status" with no project specified
Browse files Browse the repository at this point in the history
  • Loading branch information
jix committed Mar 11, 2024
1 parent 0c84510 commit fd381ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sbysrc/sby.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@

if status_show or status_reset:
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'):
target = target[:-4]
if not os.path.isdir(target):
Expand Down

0 comments on commit fd381ad

Please sign in to comment.