Commit fda3bcd
fix(cli): use callback pattern to avoid breaking no-subcommand invocation
Registering a second @app.command() forced Typer to require an explicit
subcommand, breaking the existing `python -m webwright.run.cli -t "..."`
invocation form. Switch `main` to @app.callback(invoke_without_command=True)
so the default invocation works without a subcommand while list-configs
remains available as an explicit subcommand.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 80aa762 commit fda3bcd
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
154 | 160 | | |
155 | 161 | | |
156 | 162 | | |
| |||
0 commit comments