     try main()
     print("")
 } catch Error.NotEnoughArguments {
-    printUsage(stderr)
+    printError(Usage)
 } catch Error.InvalidPath(let path) {
     printError("\"\(path)\" is an invalid file path")
 } catch Error.UnableToWrite(let path) {


import Foundation

let ProgressBarTotalTicks = 25

enum Error: ErrorType {

    return booleanValue!
}

func main() throws {
    let args = Process.arguments
    if args.count == 0 {
        throw Error.NotEnoughArguments
    } else if ["usage", "help", "-h", "--help"].indexOf(args[0]) != nil {
        print(Usage)
        return
    } else if args.count < 3 {
        throw Error.NotEnoughArguments
