Commit 74f1f8c
authored
Simplify configuration check for async root command (#736)
If the synchronous `main()` is running for an `AsyncParsableCommand`
root, something went wrong. Previously, this was only diagnosed when
there was an async subcommand; this change expands the failure
condition to include standalone async commands.
Fixes #662.1 parent f2eda39 commit 74f1f8c
1 file changed
+4
-7
lines changedLines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | 149 | | |
151 | 150 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
158 | 155 | | |
159 | 156 | | |
160 | 157 | | |
| |||
0 commit comments