Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional argv to main so it can be overridden programmatically #11

Open
theferrit32 opened this issue May 26, 2023 · 3 comments
Open
Labels
keep alive exempt issue from staleness checks

Comments

@theferrit32
Copy link
Contributor

Add an argv parameter to cli.main, cli._parse_opts. Currently uses ArgumentParser.parse_args() with no args, so it only looks at sys.argv.

Parameterizing those would make it easier to run the service programmatically from another application.

def main():
coloredlogs.install(level="INFO")
if "SEQREPO_DIR" in os.environ:
_logger.warn("SEQREPO_DIR environment variable is now ignored")
opts = _parse_opts()

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale Issue is stale and subject to automatic closing label Sep 18, 2023
@github-actions
Copy link

This issue was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 25, 2023
@reece reece reopened this Dec 8, 2023
@github-actions github-actions bot removed the stale Issue is stale and subject to automatic closing label Dec 9, 2023
Copy link

github-actions bot commented Mar 9, 2024

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale Issue is stale and subject to automatic closing label Mar 9, 2024
@jsstevenson jsstevenson added keep alive exempt issue from staleness checks and removed stale Issue is stale and subject to automatic closing labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keep alive exempt issue from staleness checks
Projects
None yet
Development

No branches or pull requests

3 participants