solo-io / bumblebee

Get eBPF programs running from the cloud to the kernel in 1 line of bash
Apache License 2.0
1.26k stars 78 forks source link

have CLI print help message if invalid number of args passsed #111

Open albertlockett opened 9 months ago

albertlockett commented 9 months ago

Version

No response

Linux Version

No response

Is your feature request related to a problem? Please describe.

It would be nice if the CLI would print the help message for the command if there is an invalid number of arguments passed.

For example:

$ ~/go/bin/bee package hello                   
Error: accepts 2 arg(s), received 1
2024/02/15 16:59:00 exiting: accepts 2 arg(s), received 1

I would prefer if it printed this: https://github.com/solo-io/bumblebee/blob/c2422b5bab66754b286d062317e244f02a431dac/pkg/cli/internal/commands/package/package.go#L39-L50

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional Context

No response