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
- Host: GitHub
- URL: https://github.com/aniket965/argstodict
- Owner: Aniket965
- License: mit
- Created: 2018-02-20T16:41:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-27T15:08:43.000Z (over 7 years ago)
- Last Synced: 2025-02-15T10:17:22.942Z (8 months ago)
- Topics: package, swift
- Language: Swift
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 ArgsToDictlet args = argsToDict(args: CommandLine.arguments)
```
## 📃Example```
let args = argsToDict(args: ["init","-type","executable"])
// args -> ["type": "executable", "_": ["init"]]
```
## LicenseMIT © [Aniket965](LICENSE)