Pi66

pino-rs
Rust notification daemon.
git clone https://git.pi66.xyz/pino-rs

← back to log

1.1.0

author: pixel
date: 2025-04-14 20:31
hash: 3bfb9a6e9c881e313c9a16e5ba4efbed878953ec

Diffstat:

M

src/main.rs
4 +++++++++++++++---------------
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/src/main.rs b/src/main.rs
index 570d32c..fed5b66 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -36,7 +36,7 @@ struct Arg {


     #[argh(switch,short = 'v', description = "set a custom configuration file")]
-    version:Option<String> ,
+    version:bool ,
 }


@@ -107,7 +107,7 @@ fn main() {
     let config_folder = colors::get_config_dir();
     let args:Arg = argh::from_env();

-    if args.version.is_some() {
+    if args.version {
         println!("v1.1.0");
         return ;
     }