Skip to content

Explicitly specify the @main-method to run #203

@lefou

Description

@lefou

Currently, mainargs changes it's parsing behavior depending on the fact whether there are more that one @main-annotated methods.

  1. If there is only one @main-method, the method name must not be part of the parsed arguments.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions