1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-06-10 13:09:11 -04:00

add comments to new added code

This commit is contained in:
vcptr
2019-12-24 01:06:01 +08:00
parent f54bbb903d
commit a36631357c
4 changed files with 10 additions and 0 deletions

View File

@@ -2,12 +2,14 @@ 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