diff --git a/README.md b/README.md index 876810b..7806850 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ better RAC client ## how to use ```bash -rustc main.rs -o main # build -./main # run +rustc main.rs # build +./main # run cargo build # build with cargo cargo run # run with cargo ``` \ No newline at end of file diff --git a/main.rs b/main.rs index cab610b..229a4b8 100644 --- a/main.rs +++ b/main.rs @@ -111,8 +111,8 @@ fn get_input(prompt: &str, default: &str) -> String { } fn main() { - let host = get_input("Host (default: meex.lol:11234) > ", DEFAULT_HOST); - let name = get_input("Name (default: Anon) > ", "Anon"); + let host = get_input(&format!("Host (default: {}) > ", DEFAULT_HOST), DEFAULT_HOST); + let prefix = get_input("Prefix (default: none) > ", ""); thread::spawn({ let host = host.clone();