question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[question] Is there a way to document the `Usage` section?

See original GitHub issue

Is there a way to document the Usage section?

We use docopt to handle quite some devops task. There is quite some use-cases that are covered. We have split the script into multiple files but there are still around 20 different things you can do in the Usage section.

Documentation is very important in our organization. I wonder if there is a way that we can add documentation (some string) for different commands in the Usage section?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
SeeSpotRuncommented, Mar 11, 2017

It would be fairly easy (e.g. https://github.com/SeeSpotRun/docopt/commit/9e41facd761f618b22cf45f27819e5b30bb593c1) to modify docopt to allow brief descriptions at the end of each Usage pattern. This can improve readability, particularly if there are 20 different commands as per @brodul’s case:

Usage:
  prog add [--all]                   # Add something to somewhere
  prog remove <arg>                  # Remove something
  prog move <source> <destination>   # Move from <source> to <destination>
1reaction
keleshevcommented, Mar 1, 2017

Perhaps something like this?

Usage:
  prog add [--all]
  prog remove <arg>
  prog move <source> <destination>

Commands:
  add     Add something to somewhere
  remove  Remove something
  move    Move from <source> to <destination>
Read more comments on GitHub >

github_iconTop Results From Across the Web

The Generic Section element - HTML - MDN Web Docs - Mozilla
The HTML element represents a generic standalone section of a document, which doesn't have a more specific semantic element to represent it.
Read more >
How To Ask Questions The Smart Way - Catb.org
As a second step, use project mailing lists​​ Check the documentation of the project and its homepage for the address of a project...
Read more >
Choose a question for your form - Google Docs Editors Help
You can include up to 2000 total choices and collect several types of answers in your form or quiz. Learn how to add...
Read more >
Use comments to ask and answer questions about a document
Click in the document where you want to place the comment. In the text box on the right, type your question or comment....
Read more >
Webmaster Frequently Asked Questions - SEC.gov
How can I use company filings to research companies and funds? ... How do I find any other related documents from that filing,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found