readme
This commit is contained in:
parent
7caccb7273
commit
004d3d9f18
18
README.md
18
README.md
@ -0,0 +1,18 @@
|
||||
# Go-like flags in Odin
|
||||
|
||||
This a very simple implementation of Go-like flags in Odin
|
||||
|
||||
## Usage
|
||||
|
||||
```odin
|
||||
defer myflag.destroy()
|
||||
isRunning: bool
|
||||
isNumber: int
|
||||
isString: string
|
||||
|
||||
myflag.BoolVar(&isRunning, "isRunning", true, "A select piece of code is running!")
|
||||
myflag.IntVar(&isNumber, "isNumber", 3434, "A number!")
|
||||
myflag.StringVar(&isString, "isString", "Hellope!", "A string!")
|
||||
|
||||
myflag.parse_flags()
|
||||
```
|
||||
Loading…
x
Reference in New Issue
Block a user