swift-argument-parser icon indicating copy to clipboard operation
swift-argument-parser copied to clipboard

Example project with both windowing and command-line targets

Open fractaldragonflies opened this issue 4 years ago • 1 comments

Xcode made it pretty easy to add argument-parser dependencies, but it took me awhile to figure out that I had to also argument-parser to the 'Link Binary with Libraries' element as well. Otherwise not of the argument-parser references get resolved and my project has lots of red errors!

BTW, the @main annotation in the readme.md example also errors in Xcode. Great work. Thanks.

fractaldragonflies avatar Sep 30 '21 13:09 fractaldragonflies

Just to bring it up again: The problem with the @main still exists in the documentation.

tscholze avatar Dec 27 '21 17:12 tscholze