Skip to content

Commit 57ef64e

Browse files
committed
add usage
1 parent 9989e24 commit 57ef64e

2 files changed

Lines changed: 21 additions & 2 deletions

File tree

README.rst

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,24 @@ Please see `the INSTALL.rst file <INSTALL.rst>`_.
145145
Usage
146146
=====
147147

148-
The tool is not yet documented, but usage is fairly self-explanatory
149-
if you run ``git explode -h``.
148+
Usage is fairly self-explanatory if you run ``git explode -h``::
149+
150+
usage: git-explode [-h] [--version] [-d] [-p PREFIX] [-c NUM] BASE HEAD
151+
152+
Explode linear sequence of commits into topic branches
153+
154+
positional arguments:
155+
BASE base of sequence to explode
156+
HEAD head of sequence to explode
157+
158+
optional arguments:
159+
-h, --help show this help message and exit
160+
--version show program's version number and exit
161+
-d, --debug Show debugging
162+
-p PREFIX, --prefix PREFIX
163+
prefix for all created topic branches
164+
-c NUM, --context-lines NUM
165+
Number of lines of diff context to use [1]
150166

151167

152168
Development / support / feedback

git_explode/cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ def parse_args(args):
1818
:param args: command line parameters as list of strings
1919
:return: command line parameters as :obj:`argparse.Namespace`
2020
"""
21+
#####################################################################
22+
# REMINDER!! If you change this, remember to update README.rst too.
23+
#####################################################################
2124
parser = argparse.ArgumentParser(
2225
description="Explode linear sequence of commits into topic branches")
2326
parser.add_argument(

0 commit comments

Comments
 (0)