summaryrefslogtreecommitdiff
path: root/sphinx/cmd/quickstart.py
diff options
context:
space:
mode:
authorRaymond Sun <raymondsun33@gmail.com>2021-06-12 00:07:34 +1000
committerRaymond Sun <raymondsun33@gmail.com>2021-06-12 00:07:34 +1000
commit81049deed6a9daaa887abd3cbf217237e225302d (patch)
tree56499ceb73c05361b91d6a581e71c763e8fe11c2 /sphinx/cmd/quickstart.py
parent025db046580c400ad9a6d7eb04434bfc46ce3300 (diff)
downloadsphinx-git-81049deed6a9daaa887abd3cbf217237e225302d.tar.gz
Make quickstart just exit without reprompting
Diffstat (limited to 'sphinx/cmd/quickstart.py')
-rw-r--r--sphinx/cmd/quickstart.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/sphinx/cmd/quickstart.py b/sphinx/cmd/quickstart.py
index 29f1c50a6..1b2eacc95 100644
--- a/sphinx/cmd/quickstart.py
+++ b/sphinx/cmd/quickstart.py
@@ -220,12 +220,9 @@ def ask_user(d: Dict) -> None:
print()
print(bold(__('Error: an existing conf.py has been found in the '
'selected root path.')))
- print(__('sphinx-quickstart will not overwrite existing Sphinx projects.'))
+ print(__('sphinx-quickstart will not overwrite existing Sphinx projects. Try another directory?'))
print()
- d['path'] = do_prompt(__('Please enter a new root path (or just Enter to exit)'),
- '', ok)
- if not d['path']:
- sys.exit(1)
+ sys.exit(1)
if 'sep' not in d:
print()