Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The one-character Options flag does not seem to work anymore #16

Closed
AliSoftware opened this issue Nov 22, 2015 · 0 comments
Closed

The one-character Options flag does not seem to work anymore #16

AliSoftware opened this issue Nov 22, 2015 · 0 comments

Comments

@AliSoftware
Copy link
Contributor

Given an option defined like this:

let outputOption = Option("output", OutputDestination.Console, flag: "o", description: "The path to the file to generate (Omit to generate to stdout)")

Using -o doesn't work, while using --output does.
(The -o doesn't show up in the help either btw, not sure that's expected)

$ swiftgen images -o out.swift share/swiftgen/fixtures/Images.xcassets
Unknown Arguments: -o

Options:
    --output - The path to the file to generate (Omit to generate to stdout)
    --template - The name of the template to use for code generation (without the "images" prefix nor extension).
    --templatePath - The path of the template to use for code generation. Overrides -t.
    --enumName - The name of the enum to generate

$ swiftgen images --output out.swift share/swiftgen/fixtures/Images.xcassets
File written: out.swift

Was working in Commander 0.2.2, stopped working on 3.0.0

@kylef kylef closed this as completed in 5e589eb Nov 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant