Repository: tox-dev/tox

Issue:
tox quickstart: error: the following arguments are required: root
## Issue

I ran `tox quickstart` as described in https://tox.wiki/en/latest/user_guide.html.

and get the error `tox quickstart: error: the following arguments are required: root`.

It seems that either the default parameter that should select the current working environment seems to be broken or the documentation should be updated.

## Environment

Provide at least:

- OS: Windows 11

<details open>
<summary>Output of <code>pip list</code> of the host Python, where <code>tox</code> is installed</summary>

```console
Python version: 3.11
Packages: No idea, I installed with pipx
```

</details>

Thanks a lot for developing this super useful library!


Discussion:

Patch:
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e78e4b05..c93da511 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -5,7 +5,7 @@ repos:
       - id: end-of-file-fixer
       - id: trailing-whitespace
   - repo: https://github.com/psf/black
-    rev: 23.7.0
+    rev: 23.9.1
     hooks:
       - id: black
   - repo: https://github.com/codespell-project/codespell
diff --git a/docs/changelog/3084.bugfix.rst b/docs/changelog/3084.bugfix.rst
new file mode 100644
index 00000000..687acbd1
--- /dev/null
+++ b/docs/changelog/3084.bugfix.rst
@@ -0,0 +1,1 @@
+Fix ``quickstart`` command from requiring ``root`` positional argument
diff --git a/src/tox/session/cmd/quickstart.py b/src/tox/session/cmd/quickstart.py
index 30802399..575a5223 100644
--- a/src/tox/session/cmd/quickstart.py
+++ b/src/tox/session/cmd/quickstart.py
@@ -27,6 +27,7 @@ def tox_add_option(parser: ToxParser) -> None:
         "quickstart_root",
         metavar="root",
         default=Path().absolute(),
+        nargs="?",
         help="folder to create the tox.ini file",
         type=Path,
     )


Test patch:
diff --git a/tests/session/cmd/test_quickstart.py b/tests/session/cmd/test_quickstart.py
index 6effff29..f4672caf 100644
--- a/tests/session/cmd/test_quickstart.py
+++ b/tests/session/cmd/test_quickstart.py
@@ -53,3 +53,8 @@ def test_quickstart_refuse(tox_project: ToxProjectCreator) -> None:
 def test_quickstart_help(tox_project: ToxProjectCreator) -> None:
     outcome = tox_project({"tox.ini": ""}).run("q", "-h")
     outcome.assert_success()
+
+
+def test_quickstart_no_args(tox_project: ToxProjectCreator) -> None:
+    outcome = tox_project({}).run("q")
+    outcome.assert_success()