Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

Support for helpUrl and improved help text and usage.md #72

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

andrewdeandrade
Copy link
Contributor

The previous help text was more useful and the current help text did not make it obvious that you would get more detailed help information if you executed tcurl --help. I reverted to a style like the previous help text but better formatted. I also added support for a helpUrl option to be printed in the short help.

@andrewdeandrade
Copy link
Contributor Author

Q: should I remove the exit codes from the README.md document since they are also documented in the usage.md file?

Q: Should the localhost caveat be moved to the usage.md file?

@kriskowal @Raynos @ShanniLi

[-2 | --arg2 | --head] [-3 | --arg3 | --body]
[--shardKey] [--no-strict] [--timeout]
[--http] [--raw] [--health]
`tcurl` <service> <endpoint> <options>
Copy link
Contributor

Choose a reason for hiding this comment

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

`tcurl [OPTIONS] service endpoint`

The options are usually not enumerated in the synopsis of a man page, and typically are for usage on the command line.

@kriskowal
Copy link
Contributor

A: yes, let’s DRY up the exit codes, making the usage.md the authority. Let’s add a link to README.md to usage.md to make it discoverable for casual visitors to the repository.

A: yes, let’s move the caveat to the man page.

@andrewdeandrade
Copy link
Contributor Author

Is this in a good place to rebase and land? @kriskowal @ShanniLi

-3 --body <value> Set body to <value>
--http <method> Use HTTP <method> instead of TCP
--health Print health for <service>
--raw Send header and body as binary diaray
Copy link
Contributor

Choose a reason for hiding this comment

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

s/diaray/data/

@kriskowal
Copy link
Contributor

Consider breaking into a PR for the help URL feature and a separate PR for the help audit.

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

Successfully merging this pull request may close these issues.

2 participants