🔥 remove `--config` cli option

`eval` is not a good idea and we do not requires this anymore.
So, wait until we have a good solution.
1 files changed, 0 insertions(+), 19 deletions(-)

M lairucrem/__main__.py
M lairucrem/__main__.py +0 -19
@@ 107,22 107,6 @@ def run(rev=None, debug=False, debugger=
     loop.run()
 
 
-class ConfigAction(argparse.Action):
-    def __init__(self, option_strings,  dest, nargs=None, **kwargs):
-        # raise ValueError(option_strings, dest, nargs, kwargs)
-        super().__init__(option_strings, dest=dest, nargs=nargs, **kwargs)
-
-    def __call__(self, parser, namespace, values, option_string=None):
-        for value in values:
-            name, exp = value.split('=', 1)
-            name = name.strip()
-            try:
-                getattr(config, name)
-            except AttributeError:
-                pass  # raise Error
-            setattr(config, name, eval(exp.strip()))
-
-
 def parse_args():
     hgpath = os.environ.get('LAIRUCREM_HG')
     if not hgpath:

          
@@ 157,8 141,6 @@ def parse_args():
     parser.add_argument('--disable-inotify', default=False, action='store_true',
                         help='disable automatic refresh data on repository modification.'
                         'Requires aionotify (https://github.com/rbarrois/aionotify)')
-    parser.add_argument('--config', default=None, action=ConfigAction, nargs='*',
-                        help='Modify config values (e.g. --config DEBUG=True)')
     parser.add_argument('--version', action='store_true',
                         help='show version')
     parser.add_argument('-V', '--view-only', default=False, action='store_true',

          
@@ 254,6 236,5 @@ def main():
         print(error)
 
 
-
 if __name__ == '__main__':
     main()