Coverage for /opt/hostedtoolcache/Python/3.10.17/x64/lib/python3.10/site-packages/vfx_seqtools/seqgen_cli.py: 83%

6 statements  

« prev     ^ index     » next       coverage.py v7.8.2, created at 2025-05-30 00:30 +0000

1"""CLI wrapper for seqgen.""" 

2 

3import typer 

4 

5from vfx_seqtools.actions.seqgen import seqgen 

6 

7app = typer.Typer() 

8 

9# We use `ignore_unknown_options` to allow passing negative numbers in the frame range. 

10# otherwise, the CLI would interpret the negative number in the range '-5-10' as an option. 

11# https://github.com/fastapi/typer/discussions/798 

12app.command(context_settings={"ignore_unknown_options": True})(seqgen) 

13 

14 

15if __name__ == "__main__": 

16 app()