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

[Help] Description text missing for commands #707

Closed
mayurid opened this issue Aug 16, 2016 · 15 comments
Closed

[Help] Description text missing for commands #707

mayurid opened this issue Aug 16, 2016 · 15 comments

Comments

@mayurid
Copy link
Member

mayurid commented Aug 16, 2016

Here is what we see:-
az role -h

Group
az role

Subgroups:
assignment

Commands:
create : Create a custom role.
delete
list
update

We should have some description text for delete, list and update or simply remove the create text
Similar issues are seen in az vm -h as well.

@tjprescott
Copy link
Member

@mayurid this is the case for 95%+ of the commands. The short description is only set by the help files (@BurtBiel correct me if I'm wrong), the majority of which don't yet exist. We will probably need some script to take a "snapshot" of the help that is currently patched together like some Frankenstein monster to use as a starting point for those help files.

@tjprescott tjprescott changed the title Description text missing for commands [Help] Description text missing for commands Aug 18, 2016
@mayurid mayurid added this to the Sprint 2 milestone Aug 18, 2016
@mayurid
Copy link
Member Author

mayurid commented Aug 18, 2016

@JasonRShaver : Something for you to look at in the next couple of sprints. This is important F&F item.

@tjprescott
Copy link
Member

@mayurid @JasonRShaver resolving issue #365 should greatly alleviate this problem.

@yugangw-msft
Copy link
Contributor

FYI, i will move the description of Create a custom role. to "long-summary", so it won't show up on az role -h. The command name is pretty self-descriptive, so we don't need it everywhere.

@tjprescott
Copy link
Member

@yugangw-msft if the help text is obvious, I would argue that is shouldn't be in long summary either and should be removed altogether.

Also, if the plan is to only provide help when the command's function is not obvious, we should revert PR #365 because otherwise 80%+ of our commands will have short and long help text.

@BurtBiel
Copy link
Contributor

BurtBiel commented Aug 29, 2016

@tjprescott I think there is value in surfacing the SDK comments. Depending on the usefulness of the commands, we could selectively clear out help. My biggest concern is that I haven't seen any another command line tools with partial help files--the simple fields still have text.

from man --help:

  -?, --help                 give this help list
      --usage                give a short usage message
  -V, --version              print program version

We should discuss further with the whole team before making any sweeping changes.

@yugangw-msft
Copy link
Contributor

yugangw-msft commented Aug 29, 2016

@BurtBiel @tjprescott , I am fine that each custom command should have short description. It is not that much of maintenance burden. Once agreed, I will add short summary to all role definition commands and other command groups moving forward.
At the same time, want to confirm, for auto-command, we do have a straightforward way to override the descriptions from SDK, right? Travis just now let me try out network nic, almost all description are not accurate, or just wrong. Same with network vnet. To me, integrating doc-strings from SDK is harder to maintain as the authors of rest specs don't pay attention to those and hence every SDK integrations might break some helps

Pasting nic command help for reference:

Group
    az network nic

Commands:
    create   : Create or update a virtual machine.
    delete   : The delete netwokInterface operation deletes the specified netwokInterface.
    list
    show     : The Get ntework interface operation retreives information about the specified network
               interface.
    update

@tjprescott
Copy link
Member

@yugangw-msft the priority for help currently is:

  1. help file
  2. parameter aliases
  3. docstring (SDK or custom command)

We can override the docstring for short/long summary through the help files.

@yugangw-msft
Copy link
Contributor

thanks, I will try out the help file first.

@mayurid mayurid modified the milestones: Sprint 3, Sprint 2 Sep 16, 2016
@mayurid
Copy link
Member Author

mayurid commented Sep 16, 2016

Making this sprint 3 to see what all we address in the first phase that @JasonRShaver is working on

@tjprescott
Copy link
Member

@yugangw-msft @JasonRShaver I noticed that appservice web and it's subcommand groups are generally missing a lot of help short summaries.

@yugangw-msft
Copy link
Contributor

yugangw-msft commented Sep 28, 2016

Correct, we are still missing summaries on the web.
As you can tell, with each PR like the plan one, I am filling up the summaries, and I will keep on doing that

@mayurid
Copy link
Member Author

mayurid commented Sep 29, 2016

@yugangw-msft and @tjprescott : Shall we open a separate issue to track this? This should be closed IMO as we have the first phase of help text in. We can now track help issues per group (like appservice, vm). Thoughts?

@tjprescott
Copy link
Member

@mayurid a separate issue works fine

@yugangw-msft
Copy link
Contributor

Open #1019 for 'appservice'

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

No branches or pull requests

6 participants