HidemaruOwO / pummit

Create good commit message in CLI
MIT License
20 stars 1 forks source link

:1st_place_medal: コマンドで何も引数などが付いていないとき、helpを表示するようにする #15

Closed HidemaruOwO closed 1 year ago

HidemaruOwO commented 1 year ago

新機能及び改善など

コマンドで何も引数などが付いていないとき、helpを表示するようにする

Pull request / Issue 割振番号

No response

詳細

completeroot cmdでオプション及び引数がない場合はヘルプを表示するようにする

# before
$ pummit 
[INFO] checked the Git diff, but it looks like there are no new changes

# after
$ pummit
NAME:
   pummit - pummit <emoji prefix> <subject>

USAGE:
   pummit [global options] command [command options] [arguments...]

VERSION:
   v1.1.0 amd64

DESCRIPTION:
   Easily create nicely formatted commit messages

COMMANDS:
   alias     Subcommand to manage aliases for git characters.
   complete  Outputs a completion script.
   help, h   Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help
   --version, -v  print the version

after

$ pummit complete NAME: pummit complete - Outputs a completion script.

USAGE: pummit complete [command options] [arguments...]

OPTIONS: --bash Outputs a completion script for bash. (default: false) --zsh Outputs a completion script for zsh. (default: false) --fish Outputs a completion script for fish. (default: false) --help, -h show help