Skip to content

optparse -> information about store_const is a bit vague #101111

Closed
@jugmac00

Description

@jugmac00

Documentation

For context - new optparse user here.

After I have seen store_const in our code base, I had a bit of a hard time to figure out the difference between store and store_const.

The Other actions section just mentions.

store const -> store a constant value

I would like to add a link to https://docs.python.org/3/library/optparse.html#optparse.Option.const and mention that the constant value is not provided by the user, but needs to be set beforehand.

Would a pull request with theses changes be accepted?

Linked PRs

Metadata

Metadata

Assignees

Labels

docsDocumentation in the Doc dir

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions