Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube authored Sep 18, 2022
1 parent aba35ae commit 5c22633
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Fork of [spf13/pflag](https://github.com/spf13/pflag) aimed to provide support f
Support shorthand-only flags (e.g. `-h` without `--help`) using `S` suffix for flag functions:

```go
pflag.BoolS("help", "h", false, "show help") // -s
pflag.BoolS("help", "h", false, "show help") // -h
```

### Long Shorthand
Expand All @@ -23,4 +23,5 @@ Support shorthand flags that are more than one character long (e.g. `pkill -<sig
```go
pflag.BoolS("STOP", "STOP", false, "Stop process, unblockable") // -STOP
pflag.BoolN("help", "h", false, "show help") // -h, -help
```

0 comments on commit 5c22633

Please sign in to comment.