revert back to multiconfig

This commit is contained in:
vcptr
2020-01-03 09:26:48 +08:00
parent bda694dd8e
commit 8896ffdea8
19 changed files with 557 additions and 83 deletions
+16
View File
@@ -0,0 +1,16 @@
package cmdarg
import "strings"
// Arg is used by flag to accept multiple argument.
type Arg []string
func (c *Arg) String() string {
return strings.Join([]string(*c), " ")
}
// Set is the method flag package calls
func (c *Arg) Set(value string) error {
*c = append(*c, value)
return nil
}