Closed allanon closed 8 years ago
Improve command line parsing:
Misc::parseArgs
Getopt::Long
-override
--override
--
macro foo a b c
$.param1 = a
$.param2 = b
$.param3 = c
Improve command line parsing:
Misc::parseArgs
to parse the parameters in an openkore-standard way.Getopt::Long
to process the parameters in a CLI-standard way. For example,-override
becomes--override
.--
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
.