Skip to content

Commit

Permalink
Merge pull request #288 from widdowquinn/issue_287
Browse files Browse the repository at this point in the history
fix #287 - allows empty sys.argv if arguments passed
  • Loading branch information
widdowquinn committed Jun 16, 2021
2 parents 049f9b1 + caa5914 commit 69c6039
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyani/scripts/pyani_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@
"green",
),
termcolor(
"\tPritchard, L., Glover, R. H., Humphris, S., Elphinstone, J. G.,",
"yellow",
"\tPritchard, L., Glover, R. H., Humphris, S., Elphinstone, J. G.,", "yellow",
),
termcolor(
"\t& Toth, I.K. (2016) 'Genomics and taxonomy in diagnostics for", "yellow"
Expand Down Expand Up @@ -87,7 +86,7 @@ def run_main(argv: Optional[List[str]] = None) -> int:
args = parse_cmdline(argv)

# Catch execution with no arguments
if len(sys.argv) == 1:
if len(sys.argv) == 1 and argv is None:
sys.stderr.write("pyani version: {0}\n".format(__version__))
return 0

Expand Down

0 comments on commit 69c6039

Please sign in to comment.