diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-21 12:12:49 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-21 12:12:49 +0200 |
| commit | 88b2851c88ab26ad8aca4e0834f9c23ab720ee4b (patch) | |
| tree | d1b77a35ef6d0ae2d5dbe01fb348f92d48bea94c | |
| parent | 67e4a834d0faf098d12eb96a8fa92c8647be7123 (diff) | |
vars..
| -rw-r--r-- | live-mogrify.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/live-mogrify.py b/live-mogrify.py index ec5df21..d781721 100644 --- a/live-mogrify.py +++ b/live-mogrify.py @@ -134,7 +134,7 @@ class Listener(): def _set_fn(self, key, value): if hasattr(self.data_opt, key): try: - new_opt = self.data_opt_parser.parse_known_args([ key, value ]) + new_opt = self.data_opt_parser.parse_known_args([ key.replace('_', '-'), value ]) new_value = getattr(new_opt, key) print('set {} {}: {}'.format(type(value), key, new_value)) setattr(self.data_opt, key, new_value) |
