Skip to content

Commit

Permalink
Merge pull request #85 from kobotoolbox/update-or-upgrade
Browse files Browse the repository at this point in the history
Accept either `--update` or `--upgrade`…
  • Loading branch information
jnm authored Apr 30, 2020
2 parents 2aea483 + f6b6187 commit d5836ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions helpers/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def help():
" Prompt questions to rebuild configuration. Restart KoBoToolbox\n"
" -S, --stop\n"
" Stop KoBoToolbox\n"
" -u, --upgrade\n"
" Upgrade KoBoToolbox\n"
" -u, --update, --upgrade\n"
" Update KoBoToolbox\n"
" -cf, --compose-frontend [docker-compose arguments]\n"
" Run a docker-compose command in the front-end environment\n"
" -cb, --compose-backend [docker-compose arguments]\n"
Expand Down
6 changes: 5 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ def run(force_setup=False):
elif len(sys.argv) == 2:
if sys.argv[1] == "-h" or sys.argv[1] == "--help":
Command.help()
elif sys.argv[1] == "-u" or sys.argv[1] == "--upgrade":
elif sys.argv[1] == "-u" or sys.argv[1] == "--update":
# Gets changed to "update" in a future release; accept either
# "update" or "upgrade" here to ease the transition
Command.upgrade()
elif sys.argv[1] == "--upgrade":
Command.upgrade()
elif sys.argv[1] == "-i" or sys.argv[1] == "--info":
Command.info(0)
Expand Down

0 comments on commit d5836ff

Please sign in to comment.