restic/Godeps/_workspace/src/github.com/jessevdk/go-flags/arg.go
2015-05-10 22:46:32 +02:00

21 lines
399 B
Go

package flags
import (
"reflect"
)
// Arg represents a positional argument on the command line.
type Arg struct {
// The name of the positional argument (used in the help)
Name string
// A description of the positional argument (used in the help)
Description string
value reflect.Value
tag multiTag
}
func (a *Arg) isRemaining() bool {
return a.value.Type().Kind() == reflect.Slice
}