8000 `exec` help usage has `<command> [flags]` in the wrong order · Issue #6660 · ddev/ddev · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
exec help usage has <command> [flags] in the wrong order #6660
Closed
@TravisCarden

Description

@TravisCarden

Preliminary checklist

Output of ddev debug test

No response

Expected Behavior

The command help "Usage" line should match its behavior, [flags] first, then <command>:

ddev exec [flags] <command>

Actual Behavior

It has them flipped.

$ ddev help exec | grep Usage -a1

Usage:
  ddev exec <command> [flags]

Steps To Reproduce

The expected behavior above reflects what the "Examples" show, and it's how the command actually works:

# Wrong: DDEV passes the "--dir" flag on to the shell.
$ ddev exec echo test --dir=/var
test --dir=/var

# Correct: DDEV interprets the "--dir" flag.
$ ddev exec --dir=/var echo test
test

Anything else?

No response

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

      0