Skip to content

Commit

Permalink
accepts - for stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
crosenth committed Apr 5, 2024
1 parent 7b7ddf3 commit 32c3d7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions taxtastic/subcommands/get_descendants.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def build_parser(parser):

def action(args):
# TODO: move this logic into the taxonomy.py object file
if os.path.isfile(args.taxids):
taxids = [i.strip() for i in open(args.taxids) if i]
if os.path.isfile(args.taxids) or args.taxids == '-':
taxids = [i.strip() for i in taxtastic.utils.Opener('rt')(args.taxids) if i]
else:
taxids = args.taxids.split(',')
engine = sqlalchemy.create_engine(args.url, echo=args.verbosity > 3)
Expand Down

0 comments on commit 32c3d7f

Please sign in to comment.