 
 import CoreServices
 import Foundation
+
+let invalidOption: Int32 = 1
+let invalidIndent: Int32 = 2
 
 var indentSize = 0
 var indent: String {


var lookingForIndent = false

for var argument in CommandLine.arguments.dropFirst() {
	if argument.hasPrefix("-") {
		argument.remove(at: argument.startIndex)

		case "i":
			lookingForIndent = true
		default:
			printToError("-\(argument) is not a valid option.\nValid options are -i and -f.")
			exit(invalidOption)
		}
	} else {
		if (lookingForIndent) {
			guard let size = Int(argument) else {
				printToError("\(argument) is not a valid indent size. Exiting.")
				exit(invalidIndent)
			}
			indentSize = size
			lookingForIndent = false
