Skip to content

Commit

Permalink
enh: add CLI to documentation using sphinx extension for argparse
Browse files Browse the repository at this point in the history
Resolves: #392.
  • Loading branch information
oesteban committed Nov 28, 2023
1 parent 82977fc commit 8fdb439
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/cli.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Standalone command line usage
=============================
*SDCFlows* can execute fieldmap estimation from a BIDS-compliant dataset by using the *standalone command line interface*:

.. argparse::
:module: sdcflows.cli.main
:func: _parser
:prog: sdcflows
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"sphinx.ext.intersphinx",
"sphinx.ext.mathjax",
"sphinx.ext.viewcode",
"sphinxarg.ext",
"sphinxcontrib.apidoc",
"nipype.sphinxext.apidoc",
"nipype.sphinxext.plot_workflow",
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ Contents

installation
methods
cli
api
changes
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ doc =
pydot
pydotplus
sphinx
sphinx-argparse
sphinxcontrib-apidoc
sphinxcontrib-napoleon
docs =
Expand Down

0 comments on commit 8fdb439

Please sign in to comment.