Argue
=====

A really basic command-line argument parser in Swift

## Usage

```swift
let listArgument = Argument(fullName: "list", shortName: "l", description:
"Prints only the reminders in the given list or creates a new reminder there",
isFlag: false)
let newArgument = Argument(fullName: "new", shortName: "n", description:
"Creates a new reminder", isFlag: false)
let usage = "A little app to quickly deal with reminders."
let argue = Argue(usage: usage, arguments: [newArgument, listArgument])

let error = argue.parse()
if error != nil {
    println("Error parsing arguments: \(error?.localizedDescription)")
    exit(1)
}

if argue.helpArgument.value != nil {
    exit(0)
}

if let title = newArgument.value as? String {
    // do some magic
}
```


Argue
=====

A really basic command-line argument parser in Swift

Note that as of Xcode 6 beta 7 "Xcode does not support building static libraries
that include Swift code. (17181019)". If you're creating a command line tool
you'll need to use a static library instead of a framework, and that's not
possible yet. Instead, as a workaround, just throw the source files into your
project.

## Usage

```swift
let listArgument = Argument(fullName: "list", shortName: "l", description:
"Prints only the reminders in the given list or creates a new reminder there",
isFlag: false)
let newArgument = Argument(fullName: "new", shortName: "n", description:
"Creates a new reminder", isFlag: false)
let usage = "A little app to quickly deal with reminders."
let argue = Argue(usage: usage, arguments: [newArgument, listArgument])

let error = argue.parse()
if error != nil {
    println("Error parsing arguments: \(error?.localizedDescription)")
    exit(1)
}

if argue.helpArgument.value != nil {
    exit(0)
}

if let title = newArgument.value as? String {
    // do some magic
}
```

Add note about how you have to just add the source files to a project
Add note about how you have to just add the source files to a project

Xcode does not support building static libraries that include Swift code.
(17181019)
