Skip to content

Commit 6a89d2d

Browse files
committed
start to document commands, try sphinx-argparse
1 parent 03cee2a commit 6a89d2d

File tree

5 files changed

+18
-0
lines changed

5 files changed

+18
-0
lines changed

doc/about.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ Interested in some kung-fu or joining the effort? :ref:`api` and
1818
License is `BSD-licensed`_. Code can be found at github at
1919
http://github.com/tony/tmuxp.
2020

21+
How is tmuxp different from teamocil and tmuxinator
22+
---------------------------------------------------
23+
24+
teamocil and tmuxinator both build tmux workspaces from yaml. tmuxp
25+
also handles building workspaces.
26+
27+
teamocil and tmuxinator do this by turning YAML directly into tmux
28+
commands.
29+
2130
.. _attempt at 1.7 test: https://travis-ci.org/tony/tmuxp/jobs/12348263
2231
.. _kaptan: https://github.com/emre/kaptan
2332
.. _unittest: http://docs.python.org/2/library/unittest.html

doc/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
'sphinx.ext.intersphinx',
3434
'sphinx.ext.todo',
3535
'sphinxcontrib.aafig',
36+
'sphinxarg.ext',
3637
]
3738

3839
# Add any paths that contain templates here, relative to this directory.

doc/quickstart.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ Quickstart
77
Tmux Session Manager
88
--------------------
99

10+
.. argparse::
11+
:module: tmuxp.cli
12+
:func: get_parser
13+
:prog: tmuxp
14+
1015
tmuxp launches sessions from a configuration file.
1116

1217
Configuration files can be stored in ``$HOME/.tmuxp`` or in project

doc/requirements.pip

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ docutils==0.11
33
sphinx==dev
44
sphinxcontrib-aafig
55
reportlab
6+
sphinx-argparse

tmuxp/cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,9 +716,11 @@ def get_parser():
716716
help='Log level e.g. INFO, DEBUG, ERROR')
717717

718718
parser.add_argument('-L', dest='socket_name', default=None,
719+
help='socket name of tmux server. Same as tmux.',
719720
metavar='socket-name')
720721

721722
parser.add_argument('-S', dest='socket_path', default=None,
723+
help='socket path of tmux server. Same as tmux.',
722724
metavar='socket-path')
723725

724726
# http://stackoverflow.com/questions/8521612/argparse-optional-subparser

0 commit comments

Comments
 (0)