package pin import( "os" "fmt" "strconv" "log" "flag" ) var( Lflag bool lval int arg0 string delim rune = '\n' status int = 0 nVal int chrs []rune ) func Pow(x, p int) int { ret := 1 for i:=0 ; i
nVal {
return false
}
}
}
}
return true
}
func
Run(args []string) int {
arg0 = args[0]
flagSet := flag.NewFlagSet(args[0], flag.ExitOnError)
flagSet.IntVar(&lval, "l", 0,
"Add combinations with less number of chars starting with arg.")
flagSet.BoolVar(&Lflag, "L", false,
"Set less number to 1. Overrides l flag.")
flagSet.IntVar(&nVal, "n", 1, "Max repeats of the rune." )
flagSet.Parse(args[1:])
args = flagSet.Args()
flagSet.Usage = func() {
fmt.Fprintf(os.Stderr, "Usage of %s: %s [options]