Skip to content

Bug if we try to use an auth_arg like --update, but no other args #101

@shreyb

Description

@shreyb

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:

  1. Get auth_args and other_args
  2. If there's no other_args, print help and exit
  3. See if --update is a part of auth_args, update swagger.json if it is
  4. Generate endpoints and rest of stuff.

(2) and (3) are in the wrong order. The way it is now, running:

$ ferry-cli --update

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions