Compatibility
- 1.0.0 and master5.35.25.15.04.2
- 1.0.0 and masteriOSmacOS(Intel)macOS(ARM)LinuxtvOSwatchOS
Library for Converting CommandLine Arguments To Dictionary
Swift libary for converting cli arguments into dictionary
.package(url: "http://github.com/aniket965/ArgsToDict.git", from: "1.0.0")
import Foundation
import ArgsToDict
let args = argsToDict(args: CommandLine.arguments)
let args = argsToDict(args: ["init","-type","executable"])
// args -> ["type": "executable", "_": ["init"]]
MIT © Aniket965