Skip to content

Support short arguments for Playground CLI#3203

Open
jonathanbossenger wants to merge 5 commits intoWordPress:trunkfrom
jonathanbossenger:short-arguments
Open

Support short arguments for Playground CLI#3203
jonathanbossenger wants to merge 5 commits intoWordPress:trunkfrom
jonathanbossenger:short-arguments

Conversation

@jonathanbossenger
Copy link
Copy Markdown
Collaborator

Motivation for the change, related issues

This is a developer experience QOL enhancement, which adds aliases (aka short arguments) to the majority of the most used CLI arguments

@adamziel
Copy link
Copy Markdown
Collaborator

adamziel commented Jan 28, 2026

Good idea @jonathanbossenger! It seems in CI like there are some troubles on Windows - can we improve that?

@jonathanbossenger
Copy link
Copy Markdown
Collaborator Author

Thanks @adamziel, I missed that, probably something wrong with my tests. Will look into it and get the PR updated.

@jonathanbossenger
Copy link
Copy Markdown
Collaborator Author

@adamziel I've fixed the errors with the tests.

// wp-playground start --help
// wp-playground build-snapshot --help

expect(true).toBe(true);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a tautology, and the unit test doesn't do anything. Is this worth fixing, or should it be removed?

Initially, I thought maybe it should be removed, but I don't think there is much downside to have a test declare what short arguments are supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants