Skip to content

[FR]: Allow short flags for task args #925

@rafikk

Description

@rafikk

What is the current behavior?

AFAICT, task args can only be set using --long-option syntax. It is not possible to define a short name and set the option using short option syntax, e.g. -o.

Describe the feature

The specific use case I have is writing an aspect task that wraps an OCI image load target and then runs the loaded image in docker. I'd like to provide arguments that can be forwarded to docker run and would like to make it easy for developers to reuse their muscle memory for option names. For example, environment variables can be passed as --env but should also be passable as -e to match Docker behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions