Refactor: Big Function Alert

Learn how to refactor the parse_args function.

##The parse_args function

Our parse_args function is waving two red flags:

  • First, it contains conditional logic.
  • Second, it’s too long.

Let’s split it up.

Use the mix test command to run the code below.

Get hands-on with 1200+ tech skills courses.