Skip to content

Conflicting/missing short options on invoke #857

@markalexander

Description

@markalexander

Hi,

Running

cargo lambda invoke --help

Produces (snipped):

Options:
  -p, --invoke-port <INVOKE_PORT>                    Local port to send invoke requests [default: 9000]
[...]
  -p, --profile <PROFILE>                            AWS configuration profile to use for authorization

I assume the first was supposed to be -P to match the other subcommands.

See here:

https://github.com/cargo-lambda/cargo-lambda/blob/main/crates/cargo-lambda-invoke/src/lib.rs#L50

(Presumably along with the use of clap's automatic short option.)

I could do a one-line PR for this, but there seem to be other conflicting options. E.g. I'm not sure how you want to resolve -a?

Seems similar to #791

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions