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,20 +3,15 @@
 const HELP_MESSAGE: &str = r#"
 Usage:
   table -h | --help
-  table -v | --version
 
 Options:
-  -h --help     Print help message
-  -v --version  Print version
+  -h --help  Print help message
 "#;
-
-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
