Skip to content
Myr

Added documentation for ArgsLenAtDash

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by siddharthist · committed by siddharthist · parent d732ab3 · Browse files · 1 file+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:command.go+4 added
481 unmodified lines
482483 return findRoot(c)484}485486// ArgsLenAtDash will return the length of f.Args at the moment when a -- was487// found during arg parsing. This allows your program to know which args were488// before the -- and which came after. (Description from489// https://godoc.org/github.com/spf13/pflag#FlagSet.ArgsLenAtDash).490func (c *Command) ArgsLenAtDash() int {491 return c.Flags().ArgsLenAtDash()492}493
670 unmodified lines