Skip to content

Commit

Permalink
[watchmedo] (minor) check top_command instead of command in watchmedo…
Browse files Browse the repository at this point in the history
….main() (#890)
  • Loading branch information
taleinat committed May 13, 2022
1 parent a60ab4f commit 5747e93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/watchdog/watchmedo.py
Expand Up @@ -635,7 +635,7 @@ def handler_termination_signal(_signum, _frame):
def main():
"""Entry-point function."""
args = cli.parse_args()
if args.command is None:
if args.top_command is None:
cli.print_help()
else:
args.func(args)
Expand Down

0 comments on commit 5747e93

Please sign in to comment.