From b0a0fd0668b8f9db826b72e5d9a50d7ba3285d6d Mon Sep 17 00:00:00 2001 From: Dmitrii Malinovskii Date: Thu, 20 Jun 2024 14:08:50 +0400 Subject: [PATCH] made more accurate description for the language flag --- README.md | 2 +- internal/app/app.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8f3701e..671a2ce 100644 --- a/README.md +++ b/README.md @@ -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: ..feature if language hint is included, or .feature if it is not. When provided, the 'language' flag takes precedence over the language hint from the file name. (default "en") -languages diff --git a/internal/app/app.go b/internal/app/app.go index 5a13e84..2ed1606 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -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: ..feature if language hint is included, "+ "or .feature if it is not.\n"+ "When provided, the 'language' flag takes precedence over the language hint from the file name.",