cyclosproject / ng-openapi-gen

An OpenAPI 3.0 codegen for Angular
MIT License
397 stars 132 forks source link

Migrated to the new argparse v2 syntax #170

Closed tajnymag closed 3 years ago

tajnymag commented 3 years ago

Should fix issue #168.

Had to also upgrade the typings for argparse, as the current version doesn't support the actual argparse 2.0.1 syntax

Line 62 is questionable. I didn't want to rewrite the rest of the function to stay as consistent to your style as possible. That's why I chose to just typecast the argument to make typescript shut up. Not elegant, but it seems to work correctly, pass the tests and show the correct help message.

luisfpg commented 3 years ago

Perfect! Thank you for the PR.