From d722e33a351e65077c636f7a92011a0e82a59973 Mon Sep 17 00:00:00 2001 From: "Clayton G. Hobbs" Date: Sun, 27 Dec 2015 02:13:24 -0500 Subject: Removed override command line option Personally, I don't see a point to a switch that must be turned on to make all other switches work at all. It's a confusing behaviour that made me think I somehow broke the GUIs. --- blather.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/blather.py b/blather.py index 5406583..6abd9fb 100755 --- a/blather.py +++ b/blather.py @@ -52,8 +52,7 @@ class Blather: # Merge the options with the ones provided by command-line arguments for k, v in opts.__dict__.items(): - if (not k in self.options) or opts.override: - self.options[k] = v + self.options[k] = v if self.options['interface'] != None: if self.options['interface'] == "g": @@ -254,10 +253,6 @@ if __name__ == "__main__": action="store_true", dest="pass_words", default=False, help="passes the recognized words as arguments to the shell command") - parser.add_option("-o", "--override", - action="store_true", dest="override", default=False, - help="override config file with command line options") - parser.add_option("-H", "--history", type="int", action="store", dest="history", help="number of commands to store in history file") -- cgit 1.4.1