Skip to content

Conflicting argument with --exec #113

@davidferlay

Description

@davidferlay

Observed

  • Using --exec global option on action with no argument fails with ERROR accepts 0 arg(s), received 1
➜ plx platform:nodes --exec sh 
Usage:
  plasmactl platform:nodes [flags]

Arguments:

(...)

  ERROR   accepts 0 arg(s), received 1
  • Using --exec global option on action with mandatory argument fails with ERROR validation errors: [arguments]: missing property 'path'
➜ plx platform:vault --keyring-passphrase-file /tmp/kp --exec  -- sh                           
Usage:
  plasmactl platform:vault action path [flags]

Arguments:
      action string   Vault action name: View/edit actions to be set an ansible vault file
      path string     Path to file: The path to the vault file

(...)

  ERROR   validation errors:
            - [arguments]: missing property 'path'

Expected

  • Using --exec global option to override image execution should be successful

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