|
auth_args, other_args = get_auth_args() |
In the lines starting with the one above, we have an order-of-operations bug. We currently do the following:
- Get
auth_args and other_args
- If there's no
other_args, print help and exit
- See if
--update is a part of auth_args, update swagger.json if it is
- Generate endpoints and rest of stuff.
(2) and (3) are in the wrong order. The way it is now, running:
fails because (2) will see that there are no other_args, and exit before we can check auth_args for the update key. We just need to switch those two steps.