adk-python icon indicating copy to clipboard operation
adk-python copied to clipboard

make `adk [command]"` a synonym of `--help` because the `adk [command]`'s truncated error message is redundant these days

Open jsteinberg-rbi opened this issue 1 year ago • 3 comments

It's a fairly common convention to simply return the entire options of a particular CLI command if no options are given, assuming that that particular command actually requires options. It would be much more convenient, for example, if when I execute something like adk create instead of getting the heavily truncated and redundant message below, I simply am returned all the options of adk create thus sparing me of having to do the extra --help. We can keep --help naturally, but making help a synonym of the command is better imo because Try 'adk create --help' for help. is redundant at this point in time regarding CLIs.

Usage: adk create [OPTIONS] APP_NAME
Try 'adk create --help' for help.

Error: Missing argument 'APP_NAME'.

Describe the solution you'd like Make --help a synonym of adk [command]

Describe alternatives you've considered There are none.

jsteinberg-rbi avatar Apr 28 '25 15:04 jsteinberg-rbi

Hi @hangfei, please I've already started working on this issue and have made some good progress (screenshot attached below). I'd love to collaborate with you to get it fully resolved. Would you be able to assign it to me so I can continue and submit a PR for your review?

Before:

Image

After:

Image

bl3ck avatar Apr 29 '25 08:04 bl3ck

Hi @hangfei please any update on this?

bl3ck avatar May 03 '25 06:05 bl3ck

@bl3ck thanks. I see you have committed the change and it's fixed.

hangfei avatar May 29 '25 23:05 hangfei