Skip to content

Commit

Permalink
made more accurate description for the language flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitrii Malinovskii committed Jun 20, 2024
1 parent bdbcbb3 commit b0a0fd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ Usage of gherkingen [FEATURE_FILE]:
print usage
-language string
Specifies the natural language used to describe the feature.
This flag is optional if language information is included in the feature file name.
This flag is optional if language information is included in the feature file name, or if the feature is written in English.
The file name should be formatted as follows: <description>.<language_hint>.feature if language hint is included, or <description>.feature if it is not.
When provided, the 'language' flag takes precedence over the language hint from the file name. (default "en")
-languages
Expand Down
2 changes: 1 addition & 1 deletion internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func Run(arguments []string, out io.Writer, version string) (err error) {
"language",
defaultLanguage,
"Specifies the natural language used to describe the feature.\n"+
"This flag is optional if language information is included in the feature file name.\n"+
"This flag is optional if language information is included in the feature file name, or if the feature is written in English.\n"+
"The file name should be formatted as follows: <description>.<language_hint>.feature if language hint is included, "+
"or <description>.feature if it is not.\n"+
"When provided, the 'language' flag takes precedence over the language hint from the file name.",
Expand Down

0 comments on commit b0a0fd0

Please sign in to comment.