Skip to content

Add a new type StringArray to handle multiple occurances of a flag without comma separation #89

Closed

Description

@wu8685

Recently, there is a type StringSlice to handle the flag which is inputed multiple times. But it also handle each argument by comma separation without escaping. It is unexpected in StringArray.
For example

# input:
--value=one,two --value=three

# result by StringSlice
["one", "two", "three"]

# result expected by StringArray
["one,two", "three"]

A discussion about this function is here

Activity

  1. added a commit that references this issue on Oct 30, 2016
  2. added a commit that references this issue on Jun 26, 2026
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