Skip to content

Commit

Permalink
Added short aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
evg4b committed Feb 27, 2023
1 parent 81d353a commit 53f2b76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/configuration/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ func defineFlags() *pflag.FlagSet {
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.Uint("http-port", defaultHTTPPort, "Local HTTP listening port")
flags.Uint("https-port", defaultHTTPSPort, "Local HTTPS listening port")
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.String("config", "", "Show debug output")
flags.StringP("config", "c", "", "Show debug output")

return flags
}

0 comments on commit 53f2b76

Please sign in to comment.