dansalvato / melee-gci-compiler

Melee GCI Compiler is an application and scripting language that makes it easy for Super Smash Bros. Melee mod developers to inject custom code and data into Melee save files.
Mozilla Public License 2.0
35 stars 9 forks source link

Use argparse #9

Open Nemris opened 1 year ago

Nemris commented 1 year ago

As anticipated in #8, I'm opening this PR to propose changes that phase out getopt in favor of argparse.

While the usage is essentially the same, my changes behave differently from your parameter handling in case script_path, input_gci and output_gci aren't provided. In your version, the script aborts silently - in mine, a normal execution occurs but without saving anything, so the run is essentially simulated.