Kaynağa Gözat

added short options to cli

lunar-mining 5 yıl önce
ebeveyn
işleme
c0a9a909fd
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  1. 5 0
      src/cli/client_cli/drk_cli.rs

+ 5 - 0
src/cli/client_cli/drk_cli.rs

@@ -62,30 +62,35 @@ impl DrkCli {
             )
             )
             .arg(
             .arg(
                 Arg::new("cashier")
                 Arg::new("cashier")
+                    .short('c')
                     .long("cashier")
                     .long("cashier")
                     .help_heading(Some("Create a cashier wallet"))
                     .help_heading(Some("Create a cashier wallet"))
                     .takes_value(false),
                     .takes_value(false),
             )
             )
             .arg(
             .arg(
                 Arg::new("key")
                 Arg::new("key")
+                    .short('k')
                     .long("key")
                     .long("key")
                     .help_heading(Some("Test key"))
                     .help_heading(Some("Test key"))
                     .takes_value(false),
                     .takes_value(false),
             )
             )
             .arg(
             .arg(
                 Arg::new("wallet")
                 Arg::new("wallet")
+                    .short('w')
                     .long("wallet")
                     .long("wallet")
                     .help_heading(Some("Create a new wallet"))
                     .help_heading(Some("Create a new wallet"))
                     .takes_value(false),
                     .takes_value(false),
             )
             )
             .arg(
             .arg(
                 Arg::new("info")
                 Arg::new("info")
+                    .short('i')
                     .long("info")
                     .long("info")
                     .help_heading(Some("Request info from daemon"))
                     .help_heading(Some("Request info from daemon"))
                     .takes_value(false),
                     .takes_value(false),
             )
             )
             .arg(
             .arg(
                 Arg::new("stop")
                 Arg::new("stop")
+                    .short('s')
                     .long("stop")
                     .long("stop")
                     .help_heading(Some("Send a stop signal to the daemon"))
                     .help_heading(Some("Send a stop signal to the daemon"))
                     .takes_value(false),
                     .takes_value(false),