Skip to content

Commit

Permalink
modified exit status when no arguments are given
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanpw committed Dec 2, 2020
1 parent 1917546 commit 2581e9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/detect_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

if(len(sys.argv) < 2):
print("Error, use: ", sys.argv[0], " <raw matrix> [optional: plot]")
exit()
exit(0)
elif(len(sys.argv) == 3 and (sys.argv[2] != "plot" and sys.argv[2] != "png")):
print("Error, unrecognized parameter :", sys.argv[2])
exit()
exit(0)


# Get length of the fastas
Expand Down

0 comments on commit 2581e9b

Please sign in to comment.