Merge pull request #1 from surdeus/master
Parse now returns parsed arguments to make code shorter.
This commit is contained in:
commit
73d5a2f194
1 changed files with 2 additions and 1 deletions
|
@ -25,9 +25,10 @@ type Tool struct {
|
|||
|
||||
type Tools map[string] Tool
|
||||
|
||||
func (flags *Flags) Parse() {
|
||||
func (flags *Flags) Parse() []string {
|
||||
flags.FlagSet.Parse(flags.args)
|
||||
flags.parsedArgs = flags.FlagSet.Args()
|
||||
return flags.parsedArgs
|
||||
}
|
||||
|
||||
func (flags *Flags) AllArgs() []string {
|
||||
|
|
Loading…
Reference in a new issue