use std::env;

const HELP_MESSAGE: &str = r#"
Usage:
  table -h | --help
  table -v | --version

Options:
  -h --help     Print help message
  -v --version  Print version
"#;

const VERSION: &str = "0.3.0";

fn main() {
    for arg in env::args() {
        match &*arg {
            "-h" | "--help" => println!("{}", HELP_MESSAGE.trim()),
            "-v" | "--version" => println!("{}", VERSION),
            _ => println!("TODO: implement other flags"),
        }
    }
}

use std::env;

const HELP_MESSAGE: &str = r#"
Usage:
  table -h | --help

Options:
  -h --help  Print help message
"#;

fn main() {
    for arg in env::args() {
        match &*arg {
            "-h" | "--help" => println!("{}", HELP_MESSAGE.trim()),
            _ => println!("TODO: implement other flags"),
        }
    }
}

--- 
+++ 
@@ -3,15 +3,20 @@
 const HELP_MESSAGE: &str = r#"
 Usage:
   table -h | --help
+  table -v | --version
 
 Options:
-  -h --help  Print help message
+  -h --help     Print help message
+  -v --version  Print version
 "#;
+
+const VERSION: &str = "0.3.0";
 
 fn main() {
     for arg in env::args() {
         match &*arg {
             "-h" | "--help" => println!("{}", HELP_MESSAGE.trim()),
+            "-v" | "--version" => println!("{}", VERSION),
             _ => println!("TODO: implement other flags"),
         }
     }
Print version with -v or --version flag
