Skip to content

Update help output to reflect required args. #946

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

Merged
merged 5 commits into from
Mar 27, 2021
Merged

Update help output to reflect required args. #946

merged 5 commits into from
Mar 27, 2021

Conversation

spark-c
Copy link
Contributor

@spark-c spark-c commented Mar 26, 2021

This PR fixes #945

Help output messages should now properly reflect whether args are required.
I didn't find any Options which seemed to take optional arguments; they all look like they require args OR require zero args.

Another pair of eyes would be great to double-check!

Proposed fix for Issue#945

Help output messages should now properly reflect whether args are required.
I didn't find any Options which seemed to take optional arguments; they all look like they require args OR require zero args.

Another pair of eyes would be great to double-check!
@spark-c spark-c marked this pull request as ready for review March 26, 2021 17:57
Copy link
Collaborator

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

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

Cool, the additional notation looks right.

There are a few documentation files which repeat this info, if you can find them, perhaps in man/ or doc/ or someplace, hunt for it - if you aren't able to get them updated, just say so, and we'll merge this change as a step on the way.

This will change the --help output for the user trying the tool interactively. The man page is for a smaller, discerning audience, who read that stuff. (Same content, hehe.)

Let me know if you are up to looking for how to regenerate or edit those files!

@spark-c
Copy link
Contributor Author

spark-c commented Mar 26, 2021

Sure thing! I'll do some digging around and get those updated as well.

@spark-c
Copy link
Contributor Author

spark-c commented Mar 26, 2021

Okay! Not sure how I missed the man/ directory the first time around haha.

The four man files in that directory have now been updated.

.
.P
Define your own set of sections which overrides all default sections\.
.
.P
\-\-add\-sections [HASH, STRING]
\-\-add\-sections HASH, STRING
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we should investigate this. Me, reading it, can't from the example figure out real quick what I can write here. Is Hash defined anywhere? How do I tell the CLI to enter a hash here? Can I do that in the CLI version?

I understand that this was not introduced by your amazing changes, but perhaps we need to capture this in an Issue.

Copy link
Collaborator

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this!

It improves the quality of the documentation a lot!

@olleolleolle
Copy link
Collaborator

@spark-c Thank you!

@olleolleolle olleolleolle changed the title Updated help output to reflect required args. Update help output to reflect required args. Mar 27, 2021
@olleolleolle olleolleolle merged commit 8f3f63c into github-changelog-generator:master Mar 27, 2021
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.

Not all options listed in OptionParser have optional arguments
2 participants