Skip to content

Commit

Permalink
docs: update help text
Browse files Browse the repository at this point in the history
  • Loading branch information
csdev committed Apr 13, 2023
1 parent c5412ab commit 966c8ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,14 @@ _coming soon_

```
Usage: conch [options] <revision_range>
conch [-k|--hook] <filename>
-h, --help display this help text
-q, --quiet suppress error messages for bad commits
-v, --verbose verbose log output
-V, --version display version and build info
-c, --config string path to config file
-r, --repo string path to the git repository
-k, --hook run as git commit-msg hook, validating a file (see docs)
-T, --types comma_separated_strings filter commits by type
-S, --scopes comma_separated_strings filter commits by scope
-B, --breaking show breaking changes (e.g., feat!)
Expand Down
5 changes: 2 additions & 3 deletions cmd/conch/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,8 @@ func main() {
filters.Types = nil
filters.Scopes = nil

const usage = "Usage: \n" +
" %s [options] <revision_range>\n" +
" %s [-k|--hook] <filename>\n"
const usage = "Usage: %s [options] <revision_range>\n" +
" %s [-k|--hook] <filename>\n"

fmt.Fprintf(os.Stderr, usage, os.Args[0], os.Args[0])
flag.PrintDefaults()
Expand Down

0 comments on commit 966c8ce

Please sign in to comment.