From a702d86a74d960873461fd6583943476d7ca87a0 Mon Sep 17 00:00:00 2001 From: Fabien Benureau Date: Thu, 7 Jan 2016 14:09:22 +0100 Subject: [PATCH] Make `pubs doc` subparsers required Before, `pubs doc` alone would just exit without printing any help --- pubs/commands/doc_cmd.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pubs/commands/doc_cmd.py b/pubs/commands/doc_cmd.py index c031a55..2710f7c 100644 --- a/pubs/commands/doc_cmd.py +++ b/pubs/commands/doc_cmd.py @@ -17,6 +17,7 @@ def parser(subparsers): doc_parser = subparsers.add_parser('doc', help='manage the document relating to a publication') doc_subparsers = doc_parser.add_subparsers(title='document actions', help='actions to interact with the documents', dest='action') + doc_subparsers.required = True add_parser = doc_subparsers.add_parser('add', help='add a document to a publication') add_parser.add_argument('-f', '--force', action='store_true', dest='force', default=False,