Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target/source of app upload|download command should be arg, not flag #750

Closed
wants to merge 2 commits into from

Conversation

martin-helmich
Copy link
Member

This PR streamlines the flags+args of the mw app upload|download command.

Since these are required, it makes more sense to model them as positional arguments instead of flags.

Note that this change is very breaking, which is why we're introducing it before an eventual 1.0 release.

Fixes #394

@@ -11,7 +11,7 @@ Manage apps, and app installations in your projects
* [`mw app dependency list`](#mw-app-dependency-list)
* [`mw app dependency update [INSTALLATION-ID]`](#mw-app-dependency-update-installation-id)
* [`mw app dependency versions SYSTEMSOFTWARE`](#mw-app-dependency-versions-systemsoftware)
* [`mw app download [INSTALLATION-ID]`](#mw-app-download-installation-id)
* [`mw app download [INSTALLATION-ID] TARGET`](#mw-app-download-installation-id-target)
Copy link
Member Author

Choose a reason for hiding this comment

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

Ah; now I remember why we didn't do this in the first place. This is not valid, because [INSTALLATION-ID] is optional any may not be followed by a required argument. So the only valid order would be TARGET [INSTALLATION-ID], which also seems unintuitive. I'll just close this and leave this as-is.

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.

Streamline flags and args of up-/download commands
1 participant