Changeset 131

Show
Ignore:
Timestamp:
02/18/06 18:07:52 (3 years ago)
Author:
tim
Message:

updated mkpydir with new usage

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tags/0.3.2/pyramid/mkpydir.py

    r127 r131  
    9191 
    9292def parseOptions(): 
    93     usage = "usage: mkpydir -t <type (wikiurl|htfile|html|rest)> [-d <prefixdirforsourcefile>] -p <pathtosourcefile> -o <outputdir> [-l] [-R]" 
     93    usage = """usage: mkpydir -t <type (wikiurl|htfile|html|restfile)> [-d <prefixdirforsourcefile>] -p <pathtosourcefile> -o <outputdir> [-l] [-R] 
     94examples 
     95  to create a page from a restructured text file 
     96     mkpydir -t restfile -d $HOME/pythondocs -p mypage.rst -o $HOME/beta.python.org/build/data/mynewpagedir 
     97  to create a page from a htfile file (copying the contents into the pyramid dir) 
     98     mkpydir -t htfile -d $HOME/pydotorg/trunk -p /Help.ht -o $HOME/beta.python.org/build/data/help 
     99  to link in some content from the pydotorg tree such that it always builds from the original 
     100     mkpydir -t htfile -l -p /Help.ht -o $HOME/beta.python.org/build/data/help 
     101  to include a wiki page 
     102     mkpydir -t wikiurl -d http://wiki.python.org/moin -p /Applications -o $HOME/beta.python.org/build/data/applications 
     103  to perform the above operation and create the page below the current directory 
     104     mkpydir -t wikiurl -d http://wiki.python.org/moin -p /Applications -o . 
     105    """ 
    94106    parser = OptionParser(usage) 
    95107    parser.add_option("-t", "--type", dest="type", help="the type of pydir content to be created", metavar="TYPE") 
    96     parser.add_option("-d", "--dir", dest="dir", help="the root directory for the an asset (to be used when sourcing pydotorg or wiki content)", metavar="DIR") 
     108    parser.add_option("-d", "--dir", dest="dir", help="the root directory for the an asset (to be used when copying pydotorg or wiki content)", metavar="DIR") 
    97109    parser.add_option("-p", "--path", dest="path", help="the path to the asset", metavar="PATH") 
    98110    parser.add_option("-o", "--outputdir", dest="outputdir", help="directory in which to create the pyramid directory", metavar="OUTPUTDIR")