From: Carl Worth Date: Tue, 22 Apr 2014 20:15:58 +0000 (-0700) Subject: Drop the --get-query option X-Git-Url: https://git.cworth.org/git?p=obsolete%2Fnotmuch-to-html;a=commitdiff_plain;h=f55ff7e7dcea67f544050c4a9508b3d1764d7c69 Drop the --get-query option This would make sense when the configuration file is tucked away inside some secret git repository, but when the configuration file must be explicitly provided to the script, it doesn't seem that useful. --- diff --git a/notmuch-to-html b/notmuch-to-html index edf5c97..5aba2a5 100755 --- a/notmuch-to-html +++ b/notmuch-to-html @@ -245,8 +245,6 @@ parser.add_argument('--text', help='output plain text format', action='store_true') parser.add_argument('--list-views', help='list views', action='store_true') -parser.add_argument('--get-query', help='get query for view', - metavar='VIEW') args = parser.parse_args() @@ -310,11 +308,6 @@ if args.list_views: for view in config['views']: print(view['title']) sys.exit(0) -elif args.get_query != None: - for view in config['views']: - if args.get_query == view['title']: - print(' and '.join(view['query'])) - sys.exit(0) else: # only import notmuch if needed import notmuch