about summary refs log tree commit diff
path: root/src/main.rs
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-03-19T13·08+0100
committerVincent Ambo <tazjin@gmail.com>2018-03-19T13·10+0100
commitade52d2423a4f9f8e0190b4e438823cbbc910c75 (patch)
tree0daf6f612bda4406cd0ccf740b116afc7f744eff /src/main.rs
parentcfbfe1a3559bde98d13902785712c6c3384877cb (diff)
fix(main): Fix formatting of queue name in ls-output
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index e67798e9f390..55ff0064295d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -25,8 +25,11 @@ fn run_ls() {
             content
         };
 
-        let queue_name = path.components().last().unwrap().as_os_str();
-        println!("{:?}: {}", queue_name, status)
+        let queue_name = path.components().last().unwrap()
+            .as_os_str()
+            .to_string_lossy();
+
+        println!("/{}: {}", queue_name, status)
     };
 }
 
@@ -195,7 +198,7 @@ fn main() {
 
     let matches = App::new("mq")
         .setting(AppSettings::SubcommandRequiredElseHelp)
-        .version("0.0.1")
+        .version("1.0.0")
         .about("Administrate and inspect POSIX message queues")
         .subcommand(ls)
         .subcommand(inspect)