From b63047e427c587d7195bfedd83a3db7f90e86c77 Mon Sep 17 00:00:00 2001 From: Michele Simionato Date: Sun, 5 Jun 2011 05:55:20 +0200 Subject: First commit for the experimental version 0.9.0, with better help system --- plac/CHANGES.txt | 5 +- plac/doc/ishelve2.py | 4 +- plac/doc/plac.html | 200 ++- plac/doc/plac.pdf | 4180 +++++++++++++++++++++++---------------------- plac/doc/plac_adv.txt | 37 +- plac/doc/plac_core.txt | 13 +- plac/doc/sql_interface.py | 3 +- plac/doc/test_plac.py | 4 +- plac/plac.py | 4 +- plac/plac_core.py | 22 +- plac/plac_ext.py | 97 +- 11 files changed, 2378 insertions(+), 2191 deletions(-) diff --git a/plac/CHANGES.txt b/plac/CHANGES.txt index 275a7cf..f5560e6 100644 --- a/plac/CHANGES.txt +++ b/plac/CHANGES.txt @@ -1,8 +1,9 @@ HISTORY ---------- -0.8.2 Default values are now displayed in the help message if no - help is specified (2011-05-29) +0.9.0 Default values are now displayed in the help message by default; + removed .help and introduced help as an alias for --help; + added a reference to Argh (2011-06-05) 0.8.1 Removed a stray newline in the output of plac, as signaled by Daniele Pighin; fixed a bug in the doctest method raising non-existing exceptions; turned the notification messages into diff --git a/plac/doc/ishelve2.py b/plac/doc/ishelve2.py index b055b98..dbc5d68 100644 --- a/plac/doc/ishelve2.py +++ b/plac/doc/ishelve2.py @@ -9,7 +9,7 @@ class ShelveInterface(object): def __init__(self, configfile): self.configfile = configfile or '~/conf.shelve' self.fname = os.path.expanduser(self.configfile) - self.__doc__ += '\nOperating on %s.\n.help to see '\ + self.__doc__ += '\nOperating on %s.\nUse help to see '\ 'the available commands.\n' % self.fname def __enter__(self): self.sh = shelve.open(self.fname) @@ -40,4 +40,4 @@ class ShelveInterface(object): main = ShelveInterface # useful for the tests if __name__ == '__main__': - plac.Interpreter.call(ShelveInterface) \ No newline at end of file + plac.Interpreter.call(ShelveInterface) diff --git a/plac/doc/plac.html b/plac/doc/plac.html index b470ffe..a0c738c 100644 --- a/plac/doc/plac.html +++ b/plac/doc/plac.html @@ -3,7 +3,7 @@ - +