Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
hugefiver committed Jul 12, 2024
1 parent 6d72a76 commit e0459a6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions conf/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ func GetArg() (args *FlagArgsStruct, set StringSet, helper func()) {
f.StringVar(&args.LogLevel, "level", DefaultLogLevel, "log level: `[debug|info|warning]`")
f.StringVar(&args.LogFormat, "format", DefaultLogFormat, "log format: `[plain|json]`")

var files = FlagValues{}
f.Var(&files, "key", "key file `path`, can set more than one")
StringArrayVar(f, &args.KeyFiles, "key", "key file `path`, can set more than one")
f.BoolVar(&args.GenKeyFile, "gen", false, "generate a private key to key file path")
f.StringVar(&args.KeyType, "type", "", "type for generate private key (default \"ed25519\")")

Expand Down Expand Up @@ -123,8 +122,6 @@ func GetArg() (args *FlagArgsStruct, set StringSet, helper func()) {
args.AntiScan = false
}

args.KeyFiles = files

// detect used flags
usedFlagsSet := StringSet{}
f.Visit(func(f *flag.Flag) {
Expand Down

0 comments on commit e0459a6

Please sign in to comment.