udpate readme
This commit is contained in:
parent
b666b30474
commit
026a824666
|
@ -25,7 +25,7 @@ args.Foo = "default value"
|
||||||
arg.MustParse(&args)
|
arg.MustParse(&args)
|
||||||
```
|
```
|
||||||
|
|
||||||
### Required options
|
### Required arguments
|
||||||
|
|
||||||
```go
|
```go
|
||||||
var args struct {
|
var args struct {
|
||||||
|
@ -35,7 +35,7 @@ var args struct {
|
||||||
arg.MustParse(&args)
|
arg.MustParse(&args)
|
||||||
```
|
```
|
||||||
|
|
||||||
### Positional argument
|
### Positional arguments
|
||||||
|
|
||||||
```go
|
```go
|
||||||
var args struct {
|
var args struct {
|
||||||
|
@ -81,7 +81,7 @@ options:
|
||||||
--help, -h print this help message
|
--help, -h print this help message
|
||||||
```
|
```
|
||||||
|
|
||||||
### Options with multiple values
|
### Arguments with multiple values
|
||||||
```go
|
```go
|
||||||
var args struct {
|
var args struct {
|
||||||
Database string
|
Database string
|
||||||
|
|
Loading…
Reference in New Issue