 color = (require "ansi-color").set
 
 options = (require 'optimist')
-    .usage("Watches for changes on provided directory and uploads to simulate\n Usage:$0")
+    .usage("Watches for changes on provided directory and uploads to simulate")
     .options("c", {
         alias: "config_file"
         describe: "Path to config file"

dataObj = JSON.parse(data)

#Assume current author by default
if options.sim_path.indexOf('/') is -1 then  options.sim_path = "#{dataObj.user_name}/#{options.sim_path}"
#Add trailing slash if not provided
if options.watch_dir.charAt(options.watch_dir.length - 1) != "/" then  options.watch_dir = "#{options.watch_dir}/"


    })
    .options("w", {
        alias: "watch_dir"
        describe: "Directory to watch. Defaults to current."
        default: process.cwd()
    })
    .options("s", {
        alias: "sim_path"
        describe: "Path to simulation in author/sim_path format"
        demand: true
    })
    .options("i", {
        alias: "ignore"
        describe: "Regex with pattern of files to ignore for sync"
    })
    .argv

