[Checkins] SVN: z3c.recipe.tag/trunk/ Reinstate "no JavaScript" default because ctags seems to sometimes puke on it. Fix typo. Prepare for 0.2.0.
Gary Poster
gary at modernsongs.com
Thu Aug 28 21:55:54 EDT 2008
Log message for revision 90567:
Reinstate "no JavaScript" default because ctags seems to sometimes puke on it. Fix typo. Prepare for 0.2.0.
Changed:
U z3c.recipe.tag/trunk/README.txt
U z3c.recipe.tag/trunk/setup.py
U z3c.recipe.tag/trunk/src/z3c/recipe/tag/__init__.py
-=-
Modified: z3c.recipe.tag/trunk/README.txt
===================================================================
--- z3c.recipe.tag/trunk/README.txt 2008-08-29 01:12:04 UTC (rev 90566)
+++ z3c.recipe.tag/trunk/README.txt 2008-08-29 01:55:54 UTC (rev 90567)
@@ -50,11 +50,12 @@
of ``./bin/tags --help``::
usage: build_tags [options]
-
+
options:
-h, --help show this help message and exit
-l LANGUAGES, --languages=LANGUAGES
- ctags comma-separated list of languages
+ ctags comma-separated list of languages. defaults to
+ ``-JavaScript``
-e, --ctags-emacs flag to build emacs ctags ``TAGS`` file
-v, --ctags-vi flag to build vi ctags ``tags`` file
-b, --ctags-bbedit flag to build bbedit ctags ``tags`` file
@@ -62,19 +63,4 @@
(BBEdit_ is a Macintosh text editor.)
-Legacy support
---------------
-
-To follow a legacy pattern in this package, running ``./bin/tags`` without
-options assumes a --languages value of "-JavaScript". Passing *any* option
-to ``./bin/tags`` will turn this behavior off. Thus, these two commands are
-effectively identical, making ctags files that exclude JavaScript::
-
- $ ./bin/tags
- $ ./bin/tags -iev --languages=-JavaScript
-
-But this command will produce ctags files that include JavaScript.
-
- $ ./bin/tags -iev
-
.. _BBEdit: http://barebones.com/products/bbedit/
Modified: z3c.recipe.tag/trunk/setup.py
===================================================================
--- z3c.recipe.tag/trunk/setup.py 2008-08-29 01:12:04 UTC (rev 90566)
+++ z3c.recipe.tag/trunk/setup.py 2008-08-29 01:55:54 UTC (rev 90567)
@@ -33,7 +33,7 @@
setup(
name="z3c.recipe.tag",
- version='0.2.0b2',
+ version='0.2.0',
author="Ignas Mikalajūnas",
description="Generate ctags from eggs for development.",
long_description=(read('README.txt')
Modified: z3c.recipe.tag/trunk/src/z3c/recipe/tag/__init__.py
===================================================================
--- z3c.recipe.tag/trunk/src/z3c/recipe/tag/__init__.py 2008-08-29 01:12:04 UTC (rev 90566)
+++ z3c.recipe.tag/trunk/src/z3c/recipe/tag/__init__.py 2008-08-29 01:55:54 UTC (rev 90567)
@@ -98,9 +98,7 @@
def __call__(self, targets=None, languages=None):
if not targets:
- targets = ('idutils', 'ctags-vi', 'ctags-emacs') # legacy behavior
- if languages is None:
- languages = '-JavaScript' # legacy behavior
+ targets = ('idutils', 'ctags_vi', 'ctags_emacs') # legacy behavior
self.languages = languages or ''
results = {}
for target in targets:
@@ -155,7 +153,9 @@
def build_tags():
parser = optparse.OptionParser()
parser.add_option('-l', '--languages', dest='languages',
- help='ctags comma-separated list of languages')
+ default='-JavaScript',
+ help='ctags comma-separated list of languages. '
+ 'defaults to ``-JavaScript``')
parser.add_option('-e', '--ctags-emacs', action='callback',
callback=append_const, callback_args=('ctags_emacs',),
help='flag to build emacs ctags ``TAGS`` file')
More information about the Checkins
mailing list