Skip to content

Mismatched help keys and task args doesn't result in a useful error #398

@sohaibfarooqi

Description

@sohaibfarooqi

Hi,
I am trying to add help text to a task as follow: (Pyinvoke 0.13.0)

@task(help={'name': "Use --type aj and --type mp"})
      def build(ctx, type=None):
         pass

The issue is invoke --help build prints nothing in OPTIONS.
The check if name in self.help: (Line: 186) inside function def arg_opts() in invoke/tasks.py is getting failed and not value gets assigned to opts['help'] that's what i noticed. Any workaround for this issue?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions