Skip to content

Testflinger CLI Multi-Value Argument Inconsistencies #980

@ajzobro

Description

@ajzobro

Some of these "issues" are in the works, and so aren't real problems yet. However, that for example the --key argument; the example help string indicates that the expected syntax will be what has been fixed to match in the curses branch. (Note: curses branch does not use curses, it was poorly named)

Testflinger CLI has 3 different ways to pass multiple values.

Summary of all variants found (Style (branch): example):

  • Repeated flag referenced in help text for reserve subcommand: --key lp:user --key gh:user
    • action="append"
    • singular
  • Space-separated (main): --agents agent1 agent2
    • action="extend" + nargs="+"
    • plural
  • Comma-separated (status-list): --fields name,status,location
    • No action= or nargs= specified
    • plural
    • default="name,status,location,provision_type,comment"
    • Single string value
    • Code manually splits on comma in processing: fields = [f.strip() for f in self.args.fields.split(",")]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions