Skip to content

Aniket965/ArgsToDict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Library for Converting CommandLine Arguments To Dictionary

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages