Skip to content

Commit

Permalink
print help when no search is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
evertonstz committed Nov 23, 2019
1 parent 9efdb72 commit 1477df6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pynps.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,7 @@ def main():
elif args.update == False and args.search is None:
printft(HTML(
"<red>[SEARCH] No search term provided, you need to search for something, exiting.</red>"))
parser.print_help()
sys.exit(1)

#check if unsupported downloads were called
Expand Down

0 comments on commit 1477df6

Please sign in to comment.