Skip to content

Commit

Permalink
Don't allow sync without filter
Browse files Browse the repository at this point in the history
  • Loading branch information
marekventur committed Sep 1, 2018
1 parent aa6a80c commit 0dec277
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .development/tilda_tools.py
Expand Up @@ -11,9 +11,6 @@
Soft reboot badge and start specific app
$ tilda_tools reset --boot my_app
Update files on the badge to match the current local version, restarts afterwards
$ tilda_tools sync
Update files in folder(s) to match current local version
$ tilda_tools sync my_game shared
$ tilda_tools sync <pattern1> <pattern2> ...
Expand Down Expand Up @@ -109,7 +106,8 @@ def main():
if command == "test":
command = "sync"
if len(args.paths) == 0:
args.paths = ["lib/test_*"]
print("Please define an app or lib to sync: tilda_tools sync my_app\n")
sys.exit(1)
else:
args.paths = ["lib/test_%s.py" % p for p in args.paths]

Expand Down

0 comments on commit 0dec277

Please sign in to comment.