An open API service indexing awesome lists of open source software.

https://github.com/aniket965/argstodict

Library for Converting CommandLine Arguments To Dictionary
https://github.com/aniket965/argstodict

package swift

Last synced: 8 months ago
JSON representation

Library for Converting CommandLine Arguments To Dictionary

Awesome Lists containing this project

README

          

# ArgsToDict
> Swift libary for converting cli arguments into dictionary

## ⚙️ Installation

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

```
## 📗 Usage

```swift
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](LICENSE)