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

param defaults in script docs #91

Closed
nick-youngblut opened this issue Sep 19, 2021 · 1 comment
Closed

param defaults in script docs #91

nick-youngblut opened this issue Sep 19, 2021 · 1 comment

Comments

@nick-youngblut
Copy link

It would help to have the parameter defaults in the script docs. Example code to automatically add defaults:

class CustomFormatter(argparse.ArgumentDefaultsHelpFormatter,
                      argparse.RawDescriptionHelpFormatter):
    pass

parser = argparse.ArgumentParser(description=desc, epilog=epi,
                                 formatter_class=CustomFormatter)
@jrober84
Copy link
Collaborator

Thank you very much for this! This will definitely make things easier for users. I have implemented these changes and they will be in the next version 3.1.0

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

No branches or pull requests

2 participants