Rain пре 1 месец
родитељ
комит
0c80211afa
3 измењених фајлова са 17 додато и 3 уклоњено
  1. 1 0
      client/Cargo.toml
  2. 3 2
      client_cli/Cargo.toml
  3. 13 1
      client_cli/src/main.rs

+ 1 - 0
client/Cargo.toml

@@ -3,6 +3,7 @@ name = "client"
 version = "0.1.0"
 edition = "2021"
 default-run = "client"
+authors = ["Rain <rain@skuld.network>"]
 
 [dependencies]
 client_shared = { path = "../client_shared" }

+ 3 - 2
client_cli/Cargo.toml

@@ -1,12 +1,13 @@
 [package]
-name = "client_cli"
+name = "client-cli"
 version = "0.1.0"
 edition = "2024"
+authors = ["Rain <rain@skuld.network>"]
 
 [dependencies]
 client_shared = { path = "../client_shared" }
 utils = { path = "../utils" }
 logging = { path = "../logging" }
 
-clap = { version = "4.5.60", features = ["derive"] }
+clap = { version = "4.5.60", features = ["derive", "cargo"] }
 json = "0.12.4"

+ 13 - 1
client_cli/src/main.rs

@@ -3,7 +3,19 @@ use client_shared::{message::Message, utils::{rx_messages, tx_message}};
 use utils::time::time_millis;
 
 #[derive(Parser, Debug)]
-#[command(version, about, long_about = None)]
+#[command(
+    version,
+    about,
+    author,
+    long_about = None,
+    help_template = "\
+{before-help}{name} {version}
+{author-with-newline}{about-with-newline}
+{usage-heading} {usage}
+
+{all-args}{after-help}
+"
+)]
 struct Args {
     #[arg(
         short = 'H', long = "host",