Pass --token to 'now alias', if provided

This commit is contained in:
Simon Willison 2019-01-01 21:35:16 -08:00
commit 8b8ae55e7c

View file

@ -88,4 +88,7 @@ def publish_subcommand(publish):
else:
call("now")
if alias:
call(["now", "alias"])
alias_args = ["alias"]
if token:
alias_args.append("--token={}".format(token))
call(["now"] + alias_args)