p.add_argument("--verbose",default=False,action="store_true",help="flag for verbose output")
p.add_argument("--verbose",default=False,action="store_true",help="flag for verbose output")
p.add_argument("--limit",type=int,default=None)
p.add_argument("--limit",type=int,default=None)
p.add_argument("--allpads",default=False,action="store_true",help="flag to process all pads")
p.add_argument("--allpads",default=False,action="store_true",help="flag to process all pads")
p.add_argument("--spider",default=False,action="store_true",help="flag to spider pads")
p.add_argument("--templatepath",default=os.path.join(DATAPATH,"templates"),help="directory with templates (override default files)")
p.add_argument("--templatepath",default=os.path.join(DATAPATH,"templates"),help="directory with templates (override default files)")
p.add_argument("--colors-template",default="pad_colors.html",help="pad with authorship colors template name: pad_colors.html")
p.add_argument("--colors-template",default="pad_colors.html",help="pad with authorship colors template name: pad_colors.html")
p.add_argument("--padlink",default=[],action="append",help="give a pad link pattern, example: 'http\:\/\/10\.1\.10\.1/p/(.*)'")
p.add_argument("--padlink",default=[],action="append",help="give a pad link pattern, example: 'http\:\/\/10\.1\.10\.1/p/(.*)'")
@ -126,8 +136,11 @@ def main(args):
p.add_argument("--showurls",default=False,action="store_true",help="flag to display API URLs that are used (to stderr)")
p.add_argument("--showurls",default=False,action="store_true",help="flag to display API URLs that are used (to stderr)")
p.add_argument("--hidepaths",default=False,action="store_true",help="flag to not display paths")
p.add_argument("--hidepaths",default=False,action="store_true",help="flag to not display paths")
p.add_argument("--pretend",default=False,action="store_true",help="flag to not actually save")
p.add_argument("--pretend",default=False,action="store_true",help="flag to not actually save")
p.add_argument("--linkify",default=False,action="store_true",help="flag to process [[link]] forms (and follow when --spider is used)")
p.add_argument("--spider",default=False,action="store_true",help="flag to spider pads (requires --linkify)")
p.add_argument("--add-images",default=False,action="store_true",help="flag to add image tags")
p.add_argument("--add-images",default=False,action="store_true",help="flag to add image tags")
p.add_argument("--authors-css",default="authors.css",help="filename to save collected authorship css (nb: etherdump will overwrite this file!)")
p.add_argument("--force",default=False,action="store_true",help="force dump (even if not updated since last dump)")
p.add_argument("--authors-css",default=None,help="filename to save collected authorship css (nb: any existing file will be mercilessly overwritten), default: don't accumulate css")
# TODO css from pad --- ie specify a padid for a stylesheet!!!!!!
# TODO css from pad --- ie specify a padid for a stylesheet!!!!!!
# p.add_argument("--css", default="styles.css", help="padid of stylesheet")
# p.add_argument("--css", default="styles.css", help="padid of stylesheet")