summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-11-27 22:14:44 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2020-11-27 22:14:44 +0100
commit43ef6c9054561bb4c18f5002e3589d9d2f8ba605 (patch)
tree5c3fee6ddd5873999fdf2713d876e42225f60e1f
parentFix problem where tail of document was missing. (diff)
downloadvimwiki-scripts-43ef6c9054561bb4c18f5002e3589d9d2f8ba605.tar.gz
vimwiki-scripts-43ef6c9054561bb4c18f5002e3589d9d2f8ba605.tar.xz
Add default output mode.
-rwxr-xr-xdo.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/do.py b/do.py
index 14028b8..43f6ebd 100755
--- a/do.py
+++ b/do.py
@@ -14,9 +14,11 @@ import argparse
path_base = '/'
-parser = argparse.ArgumentParser(description='parse vimwiki files')
+parser = argparse.ArgumentParser(
+ description='parse vimwiki files',
+ formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('--mode', choices=["tex", "txt"],
- help="Format of output")
+ default='txt', help="Format of output")
parser.add_argument('infile', help="Wiki-file to use for input")
parser.add_argument('heading', help="Which heading to output")
args = parser.parse_args()