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.
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.