summaryrefslogtreecommitdiff
path: root/devel/py-Optik
diff options
context:
space:
mode:
authorshell <shell>2002-12-26 15:11:50 +0000
committershell <shell>2002-12-26 15:11:50 +0000
commit4ce2fd969189064cc304359ac78f6e8e8f1b06c4 (patch)
tree2551560be9dc6f8ff66e84077ee7e89aa42d739d /devel/py-Optik
parent8e7666fb1e090f40d38432fee23101d5a5906c59 (diff)
downloadpkgsrc-4ce2fd969189064cc304359ac78f6e8e8f1b06c4.tar.gz
Updated to py-Optik-1.4
Changes : * Factored the help-formatting code out of OptionParser into some new classes (HelpFormatter and subclasses) in help.py. This should make it a lot easier to customize how help is formatted. * Added the notion of "option groups": an OptionParser can now contain several option groups, each which contains several options. The main purpose of this is to enable sensibly-grouped help output, but it opens up all sorts of interesting (and largely untested) possibilities for code to throw whole option groups around instead of individual options. Added two new classes: OptionGroup, and OptionContainer for code common to OptionParser and OptionGroup. (OptionContainer should be invisible to programmers using Optik). * Added the 'description' attribute and set_description() method to both OptionParser and OptionGroup (actually OptionContainer). Again, this is to make help output more useful. * Made it easier for OptionParser subclasses to decide whether they should have the standard "help" option, by moving the logic from class level to the _populate_option_list() method. * Added the "choice" option type, which is just a string type constrained to a fixed set of values. * Added method get_default_values() to OptionParser. * Rewrote how OptionParser recognizes abbreviated long options; removed a redundant internal instance attribute. * Simplify parsing logic in OptionParser a tad by relocating a loop and renaming _process_arg() to _process_args().
Diffstat (limited to 'devel/py-Optik')
-rw-r--r--devel/py-Optik/Makefile4
-rw-r--r--devel/py-Optik/PLIST4
-rw-r--r--devel/py-Optik/distinfo6
3 files changed, 8 insertions, 6 deletions
diff --git a/devel/py-Optik/Makefile b/devel/py-Optik/Makefile
index 7161ff4039a..91538b76db0 100644
--- a/devel/py-Optik/Makefile
+++ b/devel/py-Optik/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2002/09/21 23:46:48 jlam Exp $
+# $NetBSD: Makefile,v 1.4 2002/12/26 15:11:50 shell Exp $
-DISTNAME= Optik-1.3
+DISTNAME= Optik-1.4
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=optik/}
diff --git a/devel/py-Optik/PLIST b/devel/py-Optik/PLIST
index 1f1a9c4c72b..c3f475f8c8e 100644
--- a/devel/py-Optik/PLIST
+++ b/devel/py-Optik/PLIST
@@ -1,8 +1,10 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2002/01/29 16:17:34 drochner Exp $
+@comment $NetBSD: PLIST,v 1.2 2002/12/26 15:11:50 shell Exp $
${PYSITELIB}/optik/__init__.py
${PYSITELIB}/optik/__init__.pyc
${PYSITELIB}/optik/errors.py
${PYSITELIB}/optik/errors.pyc
+${PYSITELIB}/optik/help.py
+${PYSITELIB}/optik/help.pyc
${PYSITELIB}/optik/option.py
${PYSITELIB}/optik/option.pyc
${PYSITELIB}/optik/option_parser.py
diff --git a/devel/py-Optik/distinfo b/devel/py-Optik/distinfo
index d6d67c89685..237e6e446c5 100644
--- a/devel/py-Optik/distinfo
+++ b/devel/py-Optik/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2002/06/10 02:29:35 shell Exp $
+$NetBSD: distinfo,v 1.3 2002/12/26 15:11:50 shell Exp $
-SHA1 (Optik-1.3.tar.gz) = 67ee3a7fe0cf366475fa977a4078e0f986990f3f
-Size (Optik-1.3.tar.gz) = 38310 bytes
+SHA1 (Optik-1.4.tar.gz) = 311f159842ddea735653a4b125bf130a81c3ecf7
+Size (Optik-1.4.tar.gz) = 42752 bytes