Skip to content

Commit

Permalink
feat: add support for importing cli module
Browse files Browse the repository at this point in the history
  • Loading branch information
ejseqera committed Nov 2, 2023
1 parent fafcea2 commit d0d0e5f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion seqerakit/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"""
import argparse
import logging
import sys

from pathlib import Path
from seqerakit import seqeraplatform, helper, overwrite
Expand Down Expand Up @@ -122,7 +123,10 @@ def handle_block(self, block, args, destroy=False):
logger.error(f"Unrecognized resource block in YAML: {block}")


def main():
def main(args=None):
if args is None:
args = sys.argv[1:]

options = parse_args()
logging.basicConfig(level=options.log_level)

Expand Down

0 comments on commit d0d0e5f

Please sign in to comment.