Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube authored Nov 10, 2022
1 parent 07e0dc2 commit cb51c88
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,13 @@ Support shorthand flags that are more than one character long (e.g. `pkill -<sig
pflag.BoolS("STOP", "STOP", false, "Stop process, unblockable") // -STOP
pflag.BoolN("help", "h", false, "show help") // -h, -help
```

### Custom Optarg Delimiter

Support custom optarg delimiter (e.g. `-agentlib:jdwp`).

```go
rootCmd.Flags().StringS("agentlib", "agentlib", "", "load native agent library")
rootCmd.Flag("agentlib").NoOptDefVal = " "
rootCmd.Flag("agentlib").OptargDelimiter = ':'
```

0 comments on commit cb51c88

Please sign in to comment.