mirror of https://github.com/ospab/ostp.git
docs: update CLI arguments to subcommands
This commit is contained in:
parent
d725a4440b
commit
b7bd8c20a5
Binary file not shown.
|
After Width: | Height: | Size: 769 KiB |
|
|
@ -235,7 +235,7 @@ pub fn enable_system_proxy(proxy_addr: &str) {
|
|||
println!("OSTP Local Proxy is running at socks5://{}", proxy_addr);
|
||||
println!("Since you are in a headless/terminal environment, OSTP cannot automatically");
|
||||
println!("configure your system proxy. To route traffic from this terminal, run:");
|
||||
println!("\n eval $(ostp --proxy-env)\n");
|
||||
println!("\n eval $(ostp proxy-env)\n");
|
||||
println!("Or configure your application (e.g. curl -x socks5://{})", proxy_addr);
|
||||
println!("===================================================================\n");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -609,8 +609,8 @@ fn run_setup_wizard(config_path: &std::path::Path) -> Result<()> {
|
|||
&format!("TUN mode: {}", if tun_enable { "enabled" } else { "disabled" }),
|
||||
"",
|
||||
"To start: ostp",
|
||||
"To check: ostp --check",
|
||||
"Proxy env: eval $(ostp --proxy-env)",
|
||||
"To check: ostp check",
|
||||
"Proxy env: eval $(ostp proxy-env)",
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
@ -682,8 +682,8 @@ fn run_setup_wizard(config_path: &std::path::Path) -> Result<()> {
|
|||
&format!("Keys: {}", key_count),
|
||||
"",
|
||||
"To start: ostp",
|
||||
"To check: ostp --check",
|
||||
"Share links: ostp --links",
|
||||
"To check: ostp check",
|
||||
"Share links: ostp links",
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
@ -1263,9 +1263,9 @@ async fn run_app() -> Result<()> {
|
|||
anyhow::bail!(
|
||||
"Configuration file {:?} not found.\n\n\
|
||||
To generate a default configuration template, run:\n\
|
||||
\t./ostp --init server\n\
|
||||
\t./ostp init server\n\
|
||||
\tor\n\
|
||||
\t./ostp --init client\n\n\
|
||||
\t./ostp init client\n\n\
|
||||
Or specify a custom configuration file path using:\n\
|
||||
\t./ostp --config /path/to/your_config.json",
|
||||
args.config
|
||||
|
|
|
|||
Loading…
Reference in New Issue