Skip to content

wrong StringSlice value when using multiple flag names #72

Closed

Description

@yichengq

When it comes here:
https://github.com/codegangsta/cli/blob/master/context.go#L220

It cannot set correct value for StringSlice type.

It causes that if I set:

cli.StringSliceFlag{"peers, C", &cli.StringSlice{}, "a comma-delimited list of machine addresses in the cluster (default: {\"127.0.0.1:4001\"})"},

and input:

--peers 1.1.1.1

it will return the value

[1.1.1.1 [1.1.1.1] [1.1.1.1 [1.1.1.1]]]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions