Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added short aliases
Browse files Browse the repository at this point in the history
evg4b committed Feb 15, 2023

Verified

This commit was signed with the committer’s verified signature.
Lord-Kamina Gregorio Litenstein
1 parent 627ad52 commit 8667451
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
@@ -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 8667451

Please sign in to comment.