Skip to content

Commit

Permalink
Remove network proxy-related command line option descriptions
Browse files Browse the repository at this point in the history
The command line options themselves were removed in commit
168313b, wherein someone clearly didn't
do the full research.

Specifically, the SDL_net-based implementation of the network API never
supported or used these options. Only libana did.
  • Loading branch information
irydacea committed Oct 26, 2020
1 parent 3c39c6b commit 5b64bd1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 33 deletions.
23 changes: 0 additions & 23 deletions doc/man/wesnoth.6
Expand Up @@ -274,29 +274,6 @@ This switch should be typed before the
.B --preprocess
command.
.TP
.B --proxy
enables usage of proxy for network connections.
.TP
.BI --proxy-address \ address
specifies
.I address
of the proxy.
.TP
.BI --proxy-port \ port
specifies
.I port
of the proxy.
.TP
.BI --proxy-user \ username
specifies
.I username
to log in to the proxy.
.TP
.BI --proxy-password \ password
specifies
.I password
to log in to the proxy.
.TP
.BI -r\ X x Y ,\ --resolution\ X x Y
sets the screen resolution. Example:
.B -r
Expand Down
11 changes: 1 addition & 10 deletions src/commandline_options.cpp
Expand Up @@ -274,19 +274,10 @@ commandline_options::commandline_options (const std::vector<std::string>& args)
("preprocess-output-macros", po::value<std::string>()->implicit_value(std::string()), "used only by the '--preprocess' command. Will output all preprocessed macros in the target file <arg>. If the file is not specified the output will be file '_MACROS_.cfg' in the target directory of preprocess's command.")
;

po::options_description proxy_opts("Proxy options");
proxy_opts.add_options()
("proxy", "enables usage of proxy for network connections.")
("proxy-address", po::value<std::string>(), "specifies address of the proxy.")
("proxy-port", po::value<std::string>(), "specifies port of the proxy.")
("proxy-user", po::value<std::string>(), "specifies username to log in to the proxy.")
("proxy-password", po::value<std::string>(), "specifies password to log in to the proxy.")
;

//hidden_.add_options()
// ("example-hidden-option", "")
// ;
visible_.add(general_opts).add(campaign_opts).add(display_opts).add(logging_opts).add(multiplayer_opts).add(testing_opts).add(preprocessor_opts).add(proxy_opts);
visible_.add(general_opts).add(campaign_opts).add(display_opts).add(logging_opts).add(multiplayer_opts).add(testing_opts).add(preprocessor_opts);

all_.add(visible_).add(hidden_);

Expand Down

0 comments on commit 5b64bd1

Please sign in to comment.