Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 736ca0c4c2 | |||
| 6366a44bc4 | |||
| d282666d6e | |||
| bd199a7dc1 | |||
| c9b773f79b |
13
src/cli.rs
13
src/cli.rs
@@ -56,7 +56,7 @@ pub enum PatchChoice {
|
||||
No,
|
||||
}
|
||||
|
||||
/// Which game's shard side this run is about (docs/modules/rust/PLAN.md §34.2.3). ServUO is the
|
||||
/// Which game this run sets up (docs/modules/rust/PLAN.md §34.2.3). ServUO is the
|
||||
/// default, so every command line written before Rust existed means exactly what it meant.
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum Game {
|
||||
@@ -94,7 +94,8 @@ pub struct Cli {
|
||||
pub patches_unsupported_servuo: bool,
|
||||
/// `--host <name>`: the hostname to print in the website URLs.
|
||||
pub host: Option<String>,
|
||||
/// `--site-url <url>`: the site's base URL, for the Admin → Shard (uo-link) link.
|
||||
/// `--site-url <url>`: the site's base URL, printed as a link to the admin page that takes
|
||||
/// the values.
|
||||
pub site_url: Option<String>,
|
||||
/// `--yes`: assume the default answer to every prompt.
|
||||
pub assume_yes: bool,
|
||||
@@ -128,7 +129,7 @@ impl Default for Cli {
|
||||
}
|
||||
|
||||
pub const USAGE: &str = "\
|
||||
Runic Gateway installer — connects a ServUO shard, or Rust servers, to a Runic
|
||||
Runic Gateway installer — connects a ServUO server, or Rust servers, to a Runic
|
||||
Gateway website.
|
||||
|
||||
Usage: runicgateway-installer <COMMAND> [OPTIONS]
|
||||
@@ -144,7 +145,7 @@ Commands:
|
||||
removes only its own plugin file and keeps the plugin config.
|
||||
|
||||
Options:
|
||||
--game <servuo|rust> Which game's shard side. Default servuo.
|
||||
--game <servuo|rust> Which game this run sets up. Default servuo.
|
||||
--verify install, update. Dry run: report every
|
||||
change that would be made, write nothing.
|
||||
--servuo <PATH> install, doctor, update. The ServUO root,
|
||||
@@ -161,7 +162,7 @@ Options:
|
||||
--host <NAME> install. The hostname to print in the
|
||||
website URLs.
|
||||
--site-url <URL> install. Your site's base URL, for the
|
||||
Admin → Shard (uo-link) link.
|
||||
admin page link it prints at the end.
|
||||
--yes Assume the default answer to every prompt.
|
||||
On uninstall it means yes: that prompt
|
||||
defaults to no, and typing `uninstall
|
||||
@@ -194,7 +195,7 @@ Environment:
|
||||
set it.
|
||||
|
||||
The installer never contacts your website, never deletes anything from your
|
||||
ServUO tree, and never starts or stops your shard.
|
||||
ServUO tree, and never starts or stops your game server.
|
||||
";
|
||||
|
||||
/// Parses arguments **without** the program name.
|
||||
|
||||
@@ -347,6 +347,11 @@ fn helper_absence(name: &str) -> String {
|
||||
an event zone, because ZoneDomes cannot be called without it"
|
||||
.to_string()
|
||||
}
|
||||
"RunicGatewayRaids.cs" => {
|
||||
"the bridge still runs and still reports raid bases, but an event's RaidableBases base \
|
||||
is not the event's: it cannot be placed, set or locked, and despawns on its own timer"
|
||||
.to_string()
|
||||
}
|
||||
_ => format!("the bridge still runs without {name}; what it helped with falls back"),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user