aboutsummaryrefslogtreecommitdiff
path: root/pyblog
diff options
context:
space:
mode:
authorZhiming Wang <zmwangx@gmail.com>2015-05-07 16:51:11 -0700
committerZhiming Wang <zmwangx@gmail.com>2015-05-07 16:51:11 -0700
commite9b7f149a37edc527eaa3d67591aec4e9ac87c6e (patch)
tree5bba4635d5d15fa4f32c3f662835432d1e2a3013 /pyblog
parentf5f5f0f054fed05948276c7330631059e879d882 (diff)
downloadmy_new_personal_website-e9b7f149a37edc527eaa3d67591aec4e9ac87c6e.tar.xz
my_new_personal_website-e9b7f149a37edc527eaa3d67591aec4e9ac87c6e.zip
add requirements.txt
Also install requirements in .travis.yml. By the way, I explored ways to install Pandoc in a Travis container environment (without sudo), but that's just too hard. Giving up.
Diffstat (limited to '')
-rwxr-xr-xpyblog3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyblog b/pyblog
index 5f318258..f993172d 100755
--- a/pyblog
+++ b/pyblog
@@ -810,7 +810,8 @@ def main():
"""CLI interface."""
description = "Simple blog generator in Python with Pandoc as backend."
parser = argparse.ArgumentParser(description=description)
- subparsers = parser.add_subparsers()
+ subparsers = parser.add_subparsers(dest="action")
+ subparsers.required = True
parser_new_post = subparsers.add_parser(
"new_post", aliases=["n", "new"],