cli/flags: Permit duplicate choices struct tag
This commit is contained in:
parent
26236b6c9a
commit
81fa84c244
2 changed files with 1 additions and 2 deletions
|
|
@ -4,6 +4,7 @@ import "github.com/rs/zerolog"
|
||||||
|
|
||||||
// Flags are global flags for the wdcli executable
|
// Flags are global flags for the wdcli executable
|
||||||
type Flags struct {
|
type Flags struct {
|
||||||
|
//lint:ignore SA5008 required by the argument framework
|
||||||
LogLevel LogLevelString `short:"l" long:"loglevel" description:"log level" default:"info" choice:"trace" choice:"debug" choice:"info" choice:"warn" choice:"error" choice:"fatal" choice:"panic"`
|
LogLevel LogLevelString `short:"l" long:"loglevel" description:"log level" default:"info" choice:"trace" choice:"debug" choice:"info" choice:"warn" choice:"error" choice:"fatal" choice:"panic"`
|
||||||
ConfigPath string `short:"c" long:"config" description:"path to distillery configuration file"`
|
ConfigPath string `short:"c" long:"config" description:"path to distillery configuration file"`
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@ import (
|
||||||
"embed"
|
"embed"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
_ "embed"
|
|
||||||
|
|
||||||
"github.com/FAU-CDI/wisski-distillery/internal/dis/component"
|
"github.com/FAU-CDI/wisski-distillery/internal/dis/component"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue