Skip to content

Commit f4758eb

Browse files
committed
Improved output
1 parent 8891a6e commit f4758eb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

scripts/repartition-index.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ def parse_cli(args):
200200
write = WriteFiles()
201201
for a in args:
202202
if a == "--windows-default":
203+
print("Using equivalent of: --pre --latest-micro -r >=3.11.0 index-windows.json")
204+
print(" --pre -r >=3.11.0 index-windows-recent.json")
205+
print(" index-windows-legacy.json")
203206
plan_split = [SplitToFile(), SplitToFile(), SplitToFile()]
204207
plan_split[0].target = "index-windows.json"
205208
plan_split[1].target = "index-windows-recent.json"
@@ -223,14 +226,16 @@ def parse_cli(args):
223226
if action.add_arg(a):
224227
action = None
225228
continue
226-
except ValueError:
227-
pass
229+
except ValueError as ex:
230+
print(ex)
228231
usage()
229232
if not plan_read:
230233
action = ReadFile()
231234
action.source = "https://www.python.org/ftp/python/index-windows.json"
232235
plan_read.append(action)
233236
if not plan_split:
237+
print("No outputs specified")
238+
print(args)
234239
usage()
235240
return [*plan_read, sort, *plan_split, write]
236241

0 commit comments

Comments
 (0)