Skip to content

Commit

Permalink
Rename --no-exclude and --extra options.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kentzo committed Jul 21, 2020
1 parent b4c5679 commit 6b6eafb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Archive repository with all its submodules.

::

git-archive-all [-v] [-C BASE_REPO] [--prefix PREFIX] [--no-exclude] [--force-submodules] [--extra EXTRA1 ...] [--dry-run] [-0 | ... | -9] OUTPUT_FILE
git-archive-all [-v] [-C BASE_REPO] [--prefix PREFIX] [--no-export-ignore] [--force-submodules] [--include EXTRA1 ...] [--dry-run] [-0 | ... | -9] OUTPUT_FILE

Options:

Expand All @@ -37,12 +37,12 @@ Archive repository with all its submodules.
-C BASE_REPO use BASE_REPO as the main git repository to archive;
defaults to the current directory when empty

--no-exclude ignore the [-]export-ignore attribute in .gitattributes
--no-export-ignore ignore the [-]export-ignore attribute in .gitattributes

--force-submodules force `git submodule init && git submodule update` at
each level before iterating submodules

--extra=EXTRA additional files to include in the archive
--include=EXTRA additional files to include in the archive

--dry-run show files to be archived without actually creating the archive

Expand Down
8 changes: 4 additions & 4 deletions git_archive_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,8 @@ def main(argv=None):
from optparse import OptionParser, SUPPRESS_HELP

parser = OptionParser(
usage="usage: %prog [-v] [-C BASE_REPO] [--prefix PREFIX] [--no-exclude]"
" [--force-submodules] [--extra EXTRA1 ...] [--dry-run] [-0 | ... | -9] OUTPUT_FILE",
usage="usage: %prog [-v] [-C BASE_REPO] [--prefix PREFIX] [--no-export-ignore]"
" [--force-submodules] [--include EXTRA1 ...] [--dry-run] [-0 | ... | -9] OUTPUT_FILE",
version="%prog {0}".format(__version__)
)

Expand All @@ -583,7 +583,7 @@ def main(argv=None):
dest='verbose',
help='enable verbose mode')

parser.add_option('--no-exclude',
parser.add_option('--no-export-ignore', '--no-exclude',
action='store_false',
dest='exclude',
default=True,
Expand All @@ -594,7 +594,7 @@ def main(argv=None):
dest='force_sub',
help='force `git submodule init && git submodule update` at each level before iterating submodules')

parser.add_option('--extra',
parser.add_option('--include', '--extra',
action='append',
dest='extra',
default=[],
Expand Down

0 comments on commit 6b6eafb

Please sign in to comment.