Changeset 4453:68b2d1c18b29 in livinglogic.python.xist

Show
Ignore:
Timestamp:
04/07/11 18:17:26 (8 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Add an epilog to all scripts that points to the online documentation.

Location:
src/ll
Files:
16 modified

Legend:

Unmodified
Added
Removed
  • src/ll/make.py

    r4422 r4453  
    15101510 
    15111511        actions = ("all", "file", "phony", "filephony", "none") 
    1512         p = argparse.ArgumentParser(description="build one or more targets") 
     1512        p = argparse.ArgumentParser(description="build one or more targets", epilog="For more info see http://www.livinglogic.de/Python/make/") 
    15131513        p.add_argument("targets", metavar="target", help="Target to be built", nargs="*") 
    15141514        p.add_argument("-x", "--ignoreerrors", dest="ignoreerrors", help="Ignore errors? (default: %(default)s)", action=misc.FlagAction, default=self.ignoreerrors) 
  • src/ll/orasql/scripts/oracreate.py

    r4452 r4453  
    8585 
    8686def main(args=None): 
    87     p = argparse.ArgumentParser(description="Print (or execute) the DDL of all objects in an Oracle database schema") 
     87    p = argparse.ArgumentParser(description="Print (or execute) the DDL of all objects in an Oracle database schema", epilog="For more info see http://www.livinglogic.de/Python/orasql/scripts/oracreate.html") 
    8888    p.add_argument("connectstring", help="Oracle connect string") 
    8989    p.add_argument("-v", "--verbose", dest="verbose", help="Give a progress report? (default %(default)s)", default=False, action=misc.FlagAction) 
  • src/ll/orasql/scripts/oradelete.py

    r4452 r4453  
    7272 
    7373def main(args=None): 
    74     p = argparse.ArgumentParser(description="Print (or execute) SQL for deleting all records from all tables in an Oracle database schema") 
     74    p = argparse.ArgumentParser(description="Print (or execute) SQL for deleting all records from all tables in an Oracle database schema", epilog="For more info see http://www.livinglogic.de/Python/orasql/scripts/oradelete.html") 
    7575    p.add_argument("connectstring", help="Oracle connect string") 
    7676    p.add_argument("-v", "--verbose", dest="verbose", help="Give a progress report? (default %(default)s)", default=False, action=misc.FlagAction) 
  • src/ll/orasql/scripts/oradiff.py

    r4452 r4453  
    178178 
    179179def main(args=None): 
    180     p = argparse.ArgumentParser(description="compare two Oracle database schemas") 
     180    p = argparse.ArgumentParser(description="compare two Oracle database schemas", epilog="For more info see http://www.livinglogic.de/Python/orasql/scripts/oradiff.html") 
    181181    p.add_argument("connectstring1", help="First schema") 
    182182    p.add_argument("connectstring2", help="Second schema") 
  • src/ll/orasql/scripts/oradrop.py

    r4452 r4453  
    7676 
    7777def main(args=None): 
    78     p = argparse.ArgumentParser(description="Print (or execute) drop statements for all objects in an Oracle database schema") 
     78    p = argparse.ArgumentParser(description="Print (or execute) drop statements for all objects in an Oracle database schema", epilog="For more info see http://www.livinglogic.de/Python/orasql/scripts/oradrop.html") 
    7979    p.add_argument("connectstring", help="Oracle connect string") 
    8080    p.add_argument("-v", "--verbose", dest="verbose", help="Give a progress report? (default %(default)s)", action=misc.FlagAction, default=False) 
  • src/ll/orasql/scripts/orafind.py

    r4452 r4453  
    142142 
    143143def main(args=None): 
    144     p = argparse.ArgumentParser(description="Search for a string in all fields of all tables in an Oracle database schema") 
     144    p = argparse.ArgumentParser(description="Search for a string in all fields of all tables in an Oracle database schema", epilog="For more info see http://www.livinglogic.de/Python/orasql/scripts/orafind.html") 
    145145    p.add_argument("connectstring", help="Oracle connect string") 
    146146    p.add_argument("searchstring", help="String to search for") 
  • src/ll/orasql/scripts/oragrant.py

    r4452 r4453  
    8484 
    8585def main(args=None): 
    86     p = argparse.ArgumentParser(description="Print (and execute) grants statements from an Oracle database schema") 
     86    p = argparse.ArgumentParser(description="Print (and execute) grants statements from an Oracle database schema", epilog="For more info see http://www.livinglogic.de/Python/orasql/scripts/oragrant.html") 
    8787    p.add_argument("connectstring", help="Oracle connect string") 
    8888    p.add_argument("-v", "--verbose", dest="verbose", help="Give a progress report? (default %(default)s)", default=False, action=misc.FlagAction) 
  • src/ll/scripts/db2ul4.py

    r4437 r4453  
    180180 
    181181def main(args=None): 
    182     p = argparse.ArgumentParser(description="render UL4 templates containing SQL statements") 
     182    p = argparse.ArgumentParser(description="render UL4 templates containing SQL statements", epilog="For more info see http://www.livinglogic.de/Python/scripts/db2ul4.html") 
    183183    p.add_argument("templates", metavar="template", help="templates to be used", nargs="+") 
    184184    p.add_argument("-i", "--inputencoding", dest="inputencoding", help="Encoding for template sources (default %(default)s)", default="utf-8", metavar="ENCODING") 
  • src/ll/scripts/ucat.py

    r4437 r4453  
    122122                        raise 
    123123 
    124     p = argparse.ArgumentParser(description="print URL content on the screen") 
     124    p = argparse.ArgumentParser(description="print URL content on the screen", epilog="For more info see http://www.livinglogic.de/Python/scripts/ucat.html") 
    125125    p.add_argument("urls", metavar="url", help="URLs to be printed", nargs="+", type=url.URL) 
    126126    p.add_argument("-r", "--recursive", dest="recursive", help="Copy stuff recursively? (default: %(default)s)", action=misc.FlagAction, default=False) 
  • src/ll/scripts/ucp.py

    r4444 r4453  
    180180                    stderr.writeln(msg) 
    181181 
    182     p = argparse.ArgumentParser(description="Copies URLs") 
     182    p = argparse.ArgumentParser(description="Copies URLs", epilog="For more info see http://www.livinglogic.de/Python/scripts/ucp.html") 
    183183    p.add_argument("urls", metavar="url", help="either one source and one target file, or multiple source files and one target dir", nargs="*", type=url.URL) 
    184184    p.add_argument("-v", "--verbose", dest="verbose", help="Be verbose? (default: %(default)s)", action=misc.FlagAction, default=False) 
  • src/ll/scripts/uls.py

    r4444 r4453  
    290290                printone(url) 
    291291 
    292     p = argparse.ArgumentParser(description="List the content of one or more URLs") 
     292    p = argparse.ArgumentParser(description="List the content of one or more URLs", epilog="For more info see http://www.livinglogic.de/Python/scripts/uls.html") 
    293293    p.add_argument("urls", metavar="url", help="URLs to be listed (default: current dir)", nargs="*", default=[url.Dir("./", scheme=None)], type=url.URL) 
    294294    p.add_argument("-c", "--color", dest="color", help="Color output (default: %(default)s)", default="auto", choices=("yes", "no", "auto")) 
  • src/ll/sisyphus.py

    r4422 r4453  
    248248        This can be overwritten in subclasses to add more arguments. 
    249249        """ 
    250         p = argparse.ArgumentParser(description=self.argdescription) 
     250        p = argparse.ArgumentParser(description=self.argdescription, epilog="For more info see http://www.livinglogic.de/Python/sisyphus/") 
    251251        p.add_argument("-p", "--projectname", dest="projectname", metavar="NAME", help="The name of the project this job belongs to (default: %(default)s)", type=self._string, default=self.projectname) 
    252252        p.add_argument("-j", "--jobname", dest="jobname", metavar="NAME", help="The name of the job (default: %(default)s)", type=self._string, default=self.jobname if self.jobname is not None else self.__class__.__name__) 
  • src/ll/xist/scripts/doc2txt.py

    r4429 r4453  
    6666 
    6767def main(args=None): 
    68     p = argparse.ArgumentParser(description="Convert an XML file (on stdin) using the ll.xist.ns.doc namespace into plain text and print it (on stdout)") 
     68    p = argparse.ArgumentParser(description="Convert an XML file (on stdin) using the ll.xist.ns.doc namespace into plain text and print it (on stdout)", epilog="For more info see http://www.livinglogic.de/Python/xist/scripts/doc2txt.html") 
    6969    p.add_argument("-t", "--title", dest="title", help="Title for the document") 
    7070    p.add_argument("-w", "--width", dest="width", help="Width of the plain text output (default %(default)s)", type=int, default=72) 
  • src/ll/xist/scripts/dtd2xsc.py

    r4437 r4453  
    262262 
    263263def main(args=None): 
    264     p = argparse.ArgumentParser(description="Convert DTDs to XIST namespace (on stdout)") 
     264    p = argparse.ArgumentParser(description="Convert DTDs to XIST namespace (on stdout)", epilog="For more info see http://www.livinglogic.de/Python/xist/scripts/dtd2xsc.html") 
    265265    p.add_argument("urls", metavar="urls", type=url.URL, help="Zero of more URLs of DTDs to be parsed (default stdin)", nargs="*") 
    266266    p.add_argument("-x", "--xmlns", dest="defaultxmlns", metavar="NAME", help="the namespace name for this module") 
  • src/ll/xist/scripts/tld2xsc.py

    r4437 r4453  
    6868 
    6969def main(args=None): 
    70     p = argparse.ArgumentParser(description="Convert JSP Tag Library Descriptor XML file (on stdin) to XIST namespace (on stdout)") 
     70    p = argparse.ArgumentParser(description="Convert JSP Tag Library Descriptor XML file (on stdin) to XIST namespace (on stdout)", epilog="For more info see http://www.livinglogic.de/Python/xist/scripts/tld2xsc.html") 
    7171    p.add_argument("-s", "--shareattrs", dest="shareattrs", help="Should identical attributes be shared among elements? (default %(default)s)", choices=("none", "dupes", "all"), default="dupes") 
    7272    p.add_argument("-m", "--model", dest="model", help="Add sims information to the namespace (default %(default)s)", choices=("none", "simple", "fullall", "fullonce"), default="simple") 
  • src/ll/xist/scripts/xml2xsc.py

    r4437 r4453  
    212212 
    213213def main(args=None): 
    214     p = argparse.ArgumentParser(description="Convert XML files to XIST namespace (on stdout)") 
     214    p = argparse.ArgumentParser(description="Convert XML files to XIST namespace (on stdout)", epilog="For more info see http://www.livinglogic.de/Python/xist/scripts/xml2xsc.html") 
    215215    p.add_argument("urls", metavar="urls", type=url.URL, help="URLs of XML files to be parsed (default stdin)", nargs="*") 
    216216    p.add_argument("-p", "--parser", dest="parser", help="parser module to use for XML parsing (default: %(default)s)", choices=("etree", "lxml"), default="etree")