Merge pull request #250 from AndreaCrotti/argparse

- remove default=None with argparse is redundant since it's the
This commit is contained in:
Alexis Metaireau 2012-03-15 14:06:12 -07:00
commit b8377f50c9
3 changed files with 13 additions and 9 deletions

View file

@ -249,7 +249,8 @@ def fields2pelican(fields, out_markup, output_path, dircat=False):
def main():
parser = argparse.ArgumentParser(
description="Transform feed, Wordpress or Dotclear files to rst files."
"Be sure to have pandoc installed")
"Be sure to have pandoc installed",
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument(dest='input', help='The input file to read')
parser.add_argument('--wpfile', action='store_true', dest='wpfile',