ArgsToDict

master

Library for Converting CommandLine Arguments To Dictionary
Aniket965/ArgsToDict

ArgsToDict

Swift libary for converting cli arguments into dictionary

⚙️ Installation

.package(url: "http://github.com/aniket965/ArgsToDict.git", from: "1.0.0")

📗 Usage

import Foundation
import ArgsToDict

let args = argsToDict(args: CommandLine.arguments)

📃Example

let args = argsToDict(args: ["init","-type","executable"])
// args -> ["type": "executable", "_": ["init"]]

License

MIT © Aniket965

Description

  • Swift Tools 4.0.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sat Oct 19 2024 11:45:22 GMT-0900 (Hawaii-Aleutian Daylight Time)