Skip to content

Commit

Permalink
Handle case with no arguments (#459)
Browse files Browse the repository at this point in the history
Co-authored-by: Build Team <[email protected]>
  • Loading branch information
itziakos and Build Team authored May 10, 2024
1 parent 740743f commit 32b6d1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion okonomiyaki/_cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,7 @@ def main(argv=None):
index_p.set_defaults(func=show_index)

ns = p.parse_args(argv)
ns.func(ns)
if hasattr(ns, 'func'):
ns.func(ns)
else:
p.print_help()

0 comments on commit 32b6d1e

Please sign in to comment.