From 3efec3d0dd196800f87047cb49fdf642055b6de2 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Fri, 4 May 2018 22:57:50 +0000 Subject: [PATCH] added new options: c, C, Q --- bin/srv.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/srv.py b/bin/srv.py index 852f432..6c07972 100644 --- a/bin/srv.py +++ b/bin/srv.py @@ -63,6 +63,15 @@ def parse_args(args): if 'q' in q: result['quiet'] = True + options_meaning = { + "c": dict(add_comments=True), + "C": dict(add_comments=False), + "Q": dict(remove_text=True), + } + for option, meaning in options_meaning.items(): + if option in q: + result.update(meaning) + for key, val in args.items(): if val == 'True': val = True