From c0bd61ba49e5e65cd53aa5c458232804f56c815e Mon Sep 17 00:00:00 2001 From: Eugen Eisler Date: Fri, 11 Oct 2024 22:27:20 +0300 Subject: [PATCH] docs: Close #1035, provide better example for pattern variables --- README.md | 2 +- cli/flags.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 126201ee4..cbfe6e96b 100644 --- a/README.md +++ b/README.md @@ -213,7 +213,7 @@ Usage: Application Options: -p, --pattern= Choose a pattern from the available patterns - -v, --variable= Values for pattern variables, e.g. -v=$name:John -v=$age:30 + -v, --variable= Values for pattern variables, e.g. -v=#role:expert -v=#points:30" -C, --context= Choose a context from the available contexts --session= Choose a session from the available sessions -S, --setup Run setup for all reconfigurable parts of fabric diff --git a/cli/flags.go b/cli/flags.go index 4f3422fbd..ba19c8181 100644 --- a/cli/flags.go +++ b/cli/flags.go @@ -15,7 +15,7 @@ import ( // Flags create flags struct. the users flags go into this, this will be passed to the chat struct in cli type Flags struct { Pattern string `short:"p" long:"pattern" description:"Choose a pattern from the available patterns" default:""` - PatternVariables map[string]string `short:"v" long:"variable" description:"Values for pattern variables, e.g. -v=$name:John -v=$age:30"` + PatternVariables map[string]string `short:"v" long:"variable" description:"Values for pattern variables, e.g. -v=#role:expert -v=#points:30"` Context string `short:"C" long:"context" description:"Choose a context from the available contexts" default:""` Session string `long:"session" description:"Choose a session from the available sessions"` Setup bool `short:"S" long:"setup" description:"Run setup for all reconfigurable parts of fabric"`