File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 7
7
from pathlib import Path
8
8
from typing import Annotated , cast
9
9
10
+ from click import Choice
11
+
10
12
try :
11
13
import inquirer
12
14
import typer
@@ -133,22 +135,26 @@ def create(
133
135
'--crawler-type' ,
134
136
'--template' ,
135
137
show_default = False ,
138
+ click_type = Choice (crawler_choices ),
136
139
help = 'The library that will be used for crawling in your crawler. If none is given, you will be prompted.' ,
137
140
),
138
141
http_client : str | None = typer .Option (
139
142
None ,
140
143
show_default = False ,
144
+ click_type = Choice (http_client_choices ),
141
145
help = 'The library that will be used to make HTTP requests in your crawler. '
142
146
'If none is given, you will be prompted.' ,
143
147
),
144
148
package_manager : str | None = typer .Option (
145
149
default = None ,
146
150
show_default = False ,
151
+ click_type = Choice (package_manager_choices ),
147
152
help = 'Package manager to be used in the new project. If none is given, you will be prompted.' ,
148
153
),
149
154
start_url : str | None = typer .Option (
150
155
default = None ,
151
156
show_default = False ,
157
+ metavar = '[START_URL]' ,
152
158
help = 'The URL where crawling should start. If none is given, you will be prompted.' ,
153
159
),
154
160
* ,
You can’t perform that action at this time.
0 commit comments