Skip to content

Commit

Permalink
use sphinx-click to document CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
maxibor committed Apr 27, 2020
1 parent 9a734d3 commit 39ea203
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 33 deletions.
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ scipy>=1.4.1
statsmodels>=0.11.0
matplotlib>=3.1.1
tqdm>=4.45.0
sphinx-click>=2.3.2
32 changes: 0 additions & 32 deletions docs/source/CLI.md

This file was deleted.

6 changes: 6 additions & 0 deletions docs/source/CLI.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CLI
===

.. click:: pydamage.cli:cli
:prog: pydamage
:show-nested:
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
'sphinx.ext.githubpages',
'sphinx.ext.napoleon',
'sphinx.ext.mathjax',
'sphinx_click.ext',
'recommonmark'
]

Expand Down
10 changes: 10 additions & 0 deletions docs/source/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,13 @@ python setup.py install
```bash
pip install git+ssh://git@github.com/maxibor/pydamage.git
```

## CLI help

Command line interface help message

```bash
pydamage --help
```

See also [CLI](CLI)
1 change: 0 additions & 1 deletion pydamage/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from pydamage.main import analyze
from pydamage import __version__


@click.command()
@click.version_option(__version__)
@click.argument('bam', type=click.Path(exists=True))
Expand Down

0 comments on commit 39ea203

Please sign in to comment.