We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b30fdf6 commit a59d0edCopy full SHA for a59d0ed
scripts/set-alias-page.py
@@ -374,9 +374,14 @@ def prompt_alias_page_info(page_path: str) -> AliasPageContent:
374
)
375
376
print(create_colored_line(Colors.GREEN, "Example: npm run-script"))
377
- title = input(create_colored_line(Colors.CYAN, "Enter page title: ")).strip()
+ page_name = Path(page_path).stem
378
+ title = input(
379
+ create_colored_line(
380
+ Colors.CYAN, f"Enter page title (press Enter to use {page_name}): "
381
+ )
382
+ ).strip()
383
if not title:
- raise SystemExit(create_colored_line(Colors.RED, "Title cannot be empty"))
384
+ title = page_name
385
386
print(
387
create_colored_line(
0 commit comments