nomothetis / optionkit Goto Github PK
View Code? Open in Web Editor NEWOption parsing in Swift
License: MIT License
Option parsing in Swift
License: MIT License
The docs say the given helpDescription
with an Option
will be displayed when the --help
option is triggered, but it is never displayed. Quite useless this way. ;)
I think there should be a "usage" output like what helpStringForCommandName
outputs now, but I think there should also be a variant that outputs real help that explains what each option does.
Would be great if this could work with SPM4, so that is could be used like so in Package.swift
:
// swift-tools-version:4.0
import PackageDescription
let package = Package(
name: "Test01",
dependencies: [
.package(url: "https://github.com/nomothetis/OptionKit.git", from: "1.0.0"),
],
targets: [
.target(
name: "Test01",
dependencies: ["OptionKit"]),
]
)
Currently running swift package generate-xcodeproj
returns:
error: noManifest(baseURL: "https://github.com/nomothetis/OptionKit.git", version: Optional("1.0.0"))
error: product dependency 'OptionKit' not found
Do you have any plans to update this to Swift 3? Would be very nice to use this in Swift 3 projects!
Hello,
I like the concept of your project and would like to use it a bit more. It's fine if I have one option but it seems to break on multiple options.
(e.g. myApp -e Hello -a AnotherValue)
Result:
opt1:
rest = ["Hello", "AnotherValue"]
Expected:
rest = "Hello"
opt3:
rest = ["Hello", "AnotherValue"]
Expected:
rest = "AnotherValue"
Do you have any plans to update this to Swift 2? Would be very nice to use this in Swift 2 projects!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.