that would be 2.2, add info to changelog 2.2
authorAlexander Solovyov <alexander@solovyov.net>
Tue, 29 Mar 2011 10:31:33 +0200
changeset 187 5e96ab1087da
parent 186 982cea7b69c3
child 188 8ee4c9ad1325
that would be 2.2, add info to changelog
Makefile
docs/changelog.rst
opster.py
tests/hello.py
tests/opster.t
--- a/Makefile	Wed Mar 23 09:20:34 2011 +0100
+++ b/Makefile	Tue Mar 29 10:31:33 2011 +0200
@@ -3,10 +3,14 @@
 help:
 	@echo "Use \`make <target>\` with one of targets:"
 	@echo "  docs  build docs"
+	@echo "  open  open docs"
 	@echo "  arch  update archlinux pkgbuild"
 
 docs:
 	cd docs && make
 
+open:
+	cd docs && make open
+
 arch:
 	python contrib/updatepkg.py
--- a/docs/changelog.rst	Wed Mar 23 09:20:34 2011 +0100
+++ b/docs/changelog.rst	Tue Mar 29 10:31:33 2011 +0200
@@ -1,6 +1,16 @@
 Changelog
 ---------
 
+2.2 (2010.03.23)
+~~~~~~~~~~~~~~~~
+
+ - adjust indentation level in multiline docstrings (compare `1`_ and `2`_)
+ - small fix for internal getopt exception handling
+
+.. _1: http://solovyov.net/opster/tests.html#multihelp1
+.. _2: http://solovyov.net/opster/tests.html#multihelp2
+
+
 2.1 (2010.01.23)
 ~~~~~~~~~~~~~~~~
 
--- a/opster.py	Wed Mar 23 09:20:34 2011 +0100
+++ b/opster.py	Tue Mar 29 10:31:33 2011 +0200
@@ -6,7 +6,7 @@
 from itertools import imap
 
 __all__ = ['command', 'dispatch']
-__version__ = '2.1'
+__version__ = '2.2'
 __author__ = 'Alexander Solovyov'
 __email__ = 'piranha@piranha.org.ua'
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/hello.py	Tue Mar 29 10:31:33 2011 +0200
@@ -0,0 +1,14 @@
+from opster import command
+
+@command(usage="%name [options]")
+def hello(name=('n', 'world', 'your name')):
+    """
+    Hello world continues the long established tradition
+    of delivering simple, but working programs in all
+    kinds of programming languages.
+    """
+    print "Hello %s" % name
+
+if __name__ == "__main__":
+    hello()
+
--- a/tests/opster.t	Wed Mar 23 09:20:34 2011 +0100
+++ b/tests/opster.t	Tue Mar 29 10:31:33 2011 +0200
@@ -41,6 +41,8 @@
   $ run multicommands.py simple
   ['test', 'ui']
 
+.. _multihelp1:
+
 Yeah, nice one, but we know that command ``complex`` is just hidden there. Let's
 check it out::
 
@@ -173,6 +175,8 @@
    -h --help    show help
 
 
+.. _multihelp2:
+
 Are we getting nicely stripped body when not following subject/body convention
 of writing commands?