Skip to content

Commit

Permalink
Removing a scenario in which help text diplays
Browse files Browse the repository at this point in the history
  • Loading branch information
dluman committed Jan 21, 2023
1 parent ddd4fe1 commit 9c7c429
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setuptools.setup(
name="arglite",
version="0.4.0",
version="0.4.1",
packages=['arglite'],
package_dir={'arglite': 'src'},
include_package_data=True,
Expand Down
2 changes: 1 addition & 1 deletion src/arglite.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self):
for error in self.errors:
print(f"✗ ERROR: A value was expected for {error}, but not was provided as a flag")

if self.optional.h or self.optional.help or len(self.vars) == 0:
if self.optional.h or self.optional.help:
self.set_help()

def __getattribute__(self, name) -> Any:
Expand Down

0 comments on commit 9c7c429

Please sign in to comment.