Skip to content
This repository has been archived by the owner on Nov 15, 2019. It is now read-only.

Commit

Permalink
Fix script entrypoints to include len(sys.argv)
Browse files Browse the repository at this point in the history
  • Loading branch information
ASVincent committed Mar 31, 2019
1 parent 8135720 commit a9fe3d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fetch/scripts/now.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def main():
"""
Run once for the given rules.
"""
return_usage = any((sys.argv < 2, '-h' in sys.argv, '--help' in sys.argv))
return_usage = any((len(sys.argv) < 2, '-h' in sys.argv, '--help' in sys.argv))

if return_usage:
sys.stderr.writelines([
Expand Down
2 changes: 1 addition & 1 deletion fetch/scripts/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def main():
"""
Run
"""
return_usage = any((sys.argv < 2, '-h' in sys.argv, '--help' in sys.argv))
return_usage = any((len(sys.argv) < 2, '-h' in sys.argv, '--help' in sys.argv))

if return_usage:
sys.stderr.writelines([
Expand Down

0 comments on commit a9fe3d6

Please sign in to comment.