(args, parser)
| 592 | |
| 593 | |
| 594 | def _dispatch_legacy(args, parser): |
| 595 | warn_legacy_mode() |
| 596 | |
| 597 | if args.input and args.text: |
| 598 | parser.error( |
| 599 | "Use either batch mode (--input) or single mode (--text), not both." |
| 600 | ) |
| 601 | |
| 602 | if args.input: |
| 603 | if not args.output_dir: |
| 604 | parser.error("Batch mode requires --output-dir") |
| 605 | return cmd_batch(args, parser) |
| 606 | |
| 607 | if not args.text or not args.output: |
| 608 | parser.error("Single-sample legacy mode requires --text and --output") |
| 609 | |
| 610 | if ( |
| 611 | args.prompt_audio |
| 612 | or args.prompt_text |
| 613 | or args.prompt_file |
| 614 | or args.reference_audio |
| 615 | ): |
| 616 | return cmd_clone(args, parser) |
| 617 | |
| 618 | return cmd_design(args, parser) |
| 619 | |
| 620 | |
| 621 | # ----------------------------- |
no test coverage detected
searching dependent graphs…