]> git.cworth.org Git - obsolete/notmuch-to-html/blobdiff - notmuch-to-html
Drop the --get-query option
[obsolete/notmuch-to-html] / notmuch-to-html
index edf5c974294d5fe80bfdd604e5fb0a5fb77fd73a..5aba2a5fe67e6f13782a37590ff55411e7daf295 100755 (executable)
@@ -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