improve runtime docs
This commit is contained in:
parent
04dd8e58ba
commit
bac3204572
4 changed files with 14 additions and 6 deletions
12
src/main.rs
12
src/main.rs
|
@ -8,8 +8,16 @@ use mcstatusface::{MinecraftStatus};
|
|||
fn main() -> Result<()> {
|
||||
let args: Vec<String> = env::args().collect();
|
||||
if args.len() < 2 {
|
||||
eprintln!("Usage: {} [serve] <address[:port]>", args[0]);
|
||||
std::process::exit(1);
|
||||
println!(
|
||||
r#"Crafty McStatusFace, v{} - made with <3 by ari melody
|
||||
|
||||
Host a web API:
|
||||
$ mcstatusface serve [address[:port]]
|
||||
|
||||
Query a server:
|
||||
$ mcstatusface <address[:port]>"#,
|
||||
env!("CARGO_PKG_VERSION"));
|
||||
std::process::exit(0);
|
||||
}
|
||||
|
||||
if args[1] != "serve" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue