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

Fix policy command flags order online help and partially doc #3244

Merged
merged 1 commit into from
Jun 5, 2020

Conversation

fedepell
Copy link
Contributor

@fedepell fedepell commented Jun 4, 2020

The online help (and partially, just for one command, also the documentation) states that the FLAGS passed to the policy command should be passed after the subcommand, but that actually fails, ie.:

./mc policy list --no-color minio/foobar
Name:
mc policy - manage anonymous access to buckets and objects

USAGE:
mc policy set [FLAGS] PERMISSION TARGET
mc policy set-json [FLAGS] FILE TARGET
mc policy get [FLAGS] TARGET
mc policy get-json [FLAGS] TARGET
mc policy list [FLAGS] TARGET

While passing the flags before the subcommand works correctly:

./mc policy --no-color list minio/foobar
foobar/* => readwrite

This PR fixes the help message and documentation (just for list, for the others was already correct) to indicate the correct syntax.

@kannappanr kannappanr merged commit 0e27dd4 into minio:master Jun 5, 2020
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.

None yet

3 participants