Skip to content

Commit

Permalink
Command help fixes (#5)
Browse files Browse the repository at this point in the history
* Adjusted default flags

* Moved to custom handling of required flags

* Fixed root command name

* Updated changelog
  • Loading branch information
vvondruska committed May 2, 2023
1 parent d3b99de commit 883778c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

Fixed root command name in the help text

## [0.0.1] - 2023-04-28


Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

const (
name = "schemadoc"
name = "schemadocs"
description = "Genera and validate Markdown docs from JSON schema files in text files"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func Test_Root(t *testing.T) {

output := new(bytes.Buffer)

args := []string{"schemadoc"}
args := []string{"schemadocs"}
if tc.command != "" {
args = append(args, tc.command)
}
Expand Down

0 comments on commit 883778c

Please sign in to comment.