AllArgs is like Args, but if there are more argument tokens available than there are targets, false is returned. The number of available argument tokens must match the number of targets exactly to return true.
(targets ...*string)
| 284 | // number of available argument tokens must match the number of |
| 285 | // targets exactly to return true. |
| 286 | func (d *Dispenser) AllArgs(targets ...*string) bool { |
| 287 | if !d.Args(targets...) { |
| 288 | return false |
| 289 | } |
| 290 | if d.NextArg() { |
| 291 | d.Prev() |
| 292 | return false |
| 293 | } |
| 294 | return true |
| 295 | } |
| 296 | |
| 297 | // CountRemainingArgs counts the amount of remaining arguments |
| 298 | // (tokens on the same line) without consuming the tokens. |
no test coverage detected