|
|
@@ -13,14 +13,14 @@ async fn main() -> ResultType<()> {
|
|
13
|
13
|
let args = format!(
|
|
14
|
14
|
"-c --config=[FILE] +takes_value 'Sets a custom config file'
|
|
15
|
15
|
-p, --port=[NUMBER(default={})] 'Sets the listening port'
|
|
16
|
|
- -s, --serial=[NUMBER(default={0})] 'Sets configure update serial number'
|
|
|
16
|
+ -s, --serial=[NUMBER(default=0)] 'Sets configure update serial number'
|
|
17
|
17
|
-R, --rendezvous-servers=[HOSTS] 'Sets rendezvous servers, seperated by colon'
|
|
18
|
18
|
-u, --software-url=[URL] 'Sets download url of RustDesk software of newest version'
|
|
19
|
19
|
-r, --relay-server=[HOST] 'Sets the default relay server'",
|
|
20
|
20
|
DEFAULT_PORT
|
|
21
|
21
|
);
|
|
22
|
22
|
let matches = App::new("hbbs")
|
|
23
|
|
- .version("1.0")
|
|
|
23
|
+ .version(crate::VERSION)
|
|
24
|
24
|
.author("Zhou Huabing <info@rustdesk.com>")
|
|
25
|
25
|
.about("RustDesk Rendezvous Server")
|
|
26
|
26
|
.args_from_usage(&args)
|