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

--tags needs a better example #7112

Closed
markgar opened this issue Aug 21, 2018 — with docs.microsoft.com · 7 comments · Fixed by #11847
Closed

--tags needs a better example #7112

markgar opened this issue Aug 21, 2018 — with docs.microsoft.com · 7 comments · Fixed by #11847
Assignees
Labels
Documentation good first issue Simple fixes for which the team would welcome a PR.
Milestone

Comments

Copy link

markgar commented Aug 21, 2018

I think it would be helpful to show exactly how to format --tags using 2 examples so that it is clear how to put them together.

Space-separated tags in 'key1[=value1],key2[=value2]' format. Use "" to clear existing tags.

When do i use " and when do i use '? This isn't clear. I'm assuming this is on every page in the CLI docs...


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@markgar
Copy link
Author

markgar commented Aug 21, 2018

I found the answer to this, but I think it would be helpful to have an example that says it is just a space separate list with no quotes.

@tjprescott
Copy link
Member

Would this help:

--tags  Space-separated list of tags. Use "" to clear tags.
      Usage:  --tags key[=value] [key[=value] ...]

@markgar
Copy link
Author

markgar commented Sep 4, 2018

I think so. I've seen this same doc sample elsewhere.

Copy link

badalk commented Nov 19, 2018

but if either your tags or values has space then this does not work. Especially when you are adding to the existing tags as then you have to manipulate the strings

@tjprescott tjprescott added the good first issue Simple fixes for which the team would welcome a PR. label Nov 30, 2018
@haokanga
Copy link

haokanga commented Aug 12, 2019

+1 to the issue, please provide concrete worked examples that can be understood by beginners.
key[=value] [key[=value] ...] may make perfect sense for developers with the knowledge the syntax, but a beginner of Azure CLI can translate "key[=value]" literally into "myKey=[myValue]" instead of "myKey=myValue", which results the key as myKey[ and the value as myValue]. This misunderstanding is observed (not crafted).

@haroldrandom haroldrandom added Documentation good first issue Simple fixes for which the team would welcome a PR. labels Oct 25, 2019
@yonzhan yonzhan added this to the S165 milestone Dec 21, 2019
@yonzhan
Copy link
Collaborator

yonzhan commented Dec 21, 2019

add to S165.

@haroldrandom
Copy link
Contributor

I will choose this style: Space-separated list of tags. Use "" to clear existing tags. Usage: --tags key[=value] [key[=value] ...]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation good first issue Simple fixes for which the team would welcome a PR.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants