Print usage on input without commands/args/flags
オープン
- 主要言語
- Go
- スター
- 3.2k
- フォーク
- 188
- 平均マージ
- 1日 1時間
- マージ済み PR(30日)
- 2
説明
In the scenario of app invocation from terminal without _any_ command/flags
```bash
> my-app
```
I'd expect the same output of:
```bash
> my-app --help
```
Instead, I have the error about the missing command.
```bash
my-app: error: expected one of "cmd1", "cmd2"
```
Is there a way/configuration to achieve my expected outcome?
The closest function I've found is ```kong.UsageOnError()```, except it prints usage help for any error (when for any other type of error I'd expect to just print the specific error).
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。