Henrybk / eventMacro

My personal rework of openkore's macro plugin
GNU General Public License v2.0
5 stars 5 forks source link

improve command line parsing #3

Closed allanon closed 8 years ago

allanon commented 8 years ago

Improve command line parsing:

  1. Use Misc::parseArgs to parse the parameters in an openkore-standard way.
  2. Use Getopt::Long to process the parameters in a CLI-standard way. For example, -override becomes --override.
  3. Allow -- to separate macro parameters, but do not require it. For example, macro foo a b c will set $.param1 = a, $.param2 = b, and $.param3 = c.