Skip to content

Allow default array when repeatable is true #461

@awattez

Description

@awattez

Description

I would like to provide an array type default value for an argument that has the repeatable functionality set to true.

Schema validation is not possible : Incompatible types. Required: string. Actual: array.

I don't know if it's possible to provide a table as a string ? Like "[file1.txt file2.txt]" or "file1.txt file2.txt". I'm not it will work.

commands:
  - name: validate
    help: validate txt file
    args:
      - name: file
        repeatable: true
        unique: true
        help: Specify file
        allowed:
          - file1.txt
          - file2.txt
          - file3.txt
        default:
          - file1.txt
          - file2.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions