Skip to content

Commit 80350e5

Browse files
committed
docs(cli): Move to argparse
1 parent 06317cf commit 80350e5

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

docs/cli/index.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,3 @@ vcspull
1414
1515
sync
1616
```
17-
18-
```{toctree}
19-
:caption: More
20-
:maxdepth: 1
21-
22-
completion
23-
```

docs/cli/sync.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44

55
# vcspull sync
66

7+
## Command
8+
9+
```{eval-rst}
10+
.. argparse::
11+
:module: vcspull.cli
12+
:func: create_parser
13+
:prog: vcspull
14+
:path: sync
15+
```
16+
717
## Filtering repos
818

919
As of 1.13.x, `$ vcspull sync` with no args passed will show a help dialog:
@@ -80,10 +90,3 @@ Print traceback for errored repos:
8090
```console
8191
$ vcspull --log-level DEBUG sync --exit-on-error grako django
8292
```
83-
84-
```{eval-rst}
85-
.. click:: vcspull.cli.sync:sync
86-
:prog: vcspull sync
87-
:commands: sync
88-
:nested: full
89-
```

docs/cli/vcspull.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
# vcspull
66

77
```{eval-rst}
8-
.. click:: vcspull.cli:cli
9-
:prog: Usage
10-
:nested: none
8+
.. argparse::
9+
:module: vcspull.cli
10+
:func: create_parser
11+
:prog: vcspull
12+
:nosubcommands:
13+
14+
subparser_name : @replace
15+
See :ref:`cli-sync`
1116
```

0 commit comments

Comments
 (0)