Skip to content

Commit

Permalink
fix: 出力メッセージを分かりやすくした
Browse files Browse the repository at this point in the history
  • Loading branch information
yuta-masano committed Jul 22, 2019
1 parent 4241293 commit cee5d25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mktpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const helpText = `mktpl is a tool to render Golang text/template with template a
Usage:
mktpl flags
Flags:
Flags (* is mandatory):
-d, --data string path to the YAML data file (*)
-t, --template string path to the template file (*)
Expand Down Expand Up @@ -139,7 +139,7 @@ func parseTemplate(text string) (*template.Template, error) {

func isValidFlags() error {
if len(tplPath) == 0 || len(dataPath) == 0 {
return fmt.Errorf("omitting -d[--data] and -t[--template] flags is not allowed")
return fmt.Errorf("omitting -d|--data and -t|--template flags is not allowed")
}
return nil
}
Expand Down

0 comments on commit cee5d25

Please sign in to comment.