Currently, mainargs changes it's parsing behavior depending on the fact whether there are more that one @main-annotated methods.
- If there is only one
@main-method, the method name must not be part of the parsed arguments.
- If there is more than on
@main-method, the first argument must be the method name.
There is no way, to use the various run methods of mainargs.Parser in a generic way. E.g. with an unknown number of @main-methods.