Skip to content

Commit

Permalink
Added short commands
Browse files Browse the repository at this point in the history
  • Loading branch information
evg4b committed Jun 1, 2023
1 parent 43a6bc4 commit ff0e8fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ func LoadConfiguration(viperInstance *viper.Viper, args []string) (*UncorsConfig
func defineFlags() *pflag.FlagSet {
flags := pflag.NewFlagSet("uncors", pflag.ContinueOnError)
flags.Usage = pflag.Usage
flags.StringSlice("to", []string{}, "Target host with protocol for to the resource to be proxy")
flags.StringSlice("from", []string{}, "Local host with protocol for to the resource from which proxying will take place") //nolint: lll
flags.StringSliceP("to", "t", []string{}, "Target host with protocol for to the resource to be proxy")
flags.StringSliceP("from", "f", []string{}, "Local host with protocol for to the resource from which proxying will take place") //nolint: lll
flags.UintP("http-port", "p", defaultHTTPPort, "Local HTTP listening port")
flags.UintP("https-port", "s", defaultHTTPSPort, "Local HTTPS listening port")
flags.String("cert-file", "", "Path to HTTPS certificate file")
flags.String("key-file", "", "Path to matching for certificate private key")
flags.String("proxy", "", "HTTP/HTTPS proxy to provide requests to real server (used system by default)")
flags.Bool("debug", false, "Show debug output")
flags.StringP("config", "c", "", "Show debug output")
flags.StringP("config", "c", "", "Path to the configuration file")

return flags
}

0 comments on commit ff0e8fa

Please sign in to comment.