Skip to content

Conversation

@ESPR3SS0
Copy link

Issue:
Fixes #438

Given an object that has no init method, or the init method takes no arguments besides self passing a '--help' flag results in a less verbose help message than if no flag was passed at all.

Cause:

  • When --help flag is provided, an object is not instantiated so the help message is less verbose
  • When no flag is provided, and the class requires no arguments, an object is instantiated so the help message is more verbose

Fix:
A check to see if the object contains an init method, and whether or not the init method requires arguments fixes this. If no arguments are required, instantiate an object then show the help message.

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.

Inconsistent behaviour between --help and no arguments

1 participant