Commits

abudden committed 5a81acc

Moved fix to the correct place and added note to remind me to sort out
dictionary support in command-line interface.

Comments (0)

Files changed (1)

plugin/TagHighlight/module/cmd.py

         if 'CommandLineSwitches' not in AllOptions[dest]:
             # Vim-only option
             continue
+        if not isinstance(AllOptions[dest]['CommandLineSwitches'], list):
+            AllOptions[dest]['CommandLineSwitches'] = AllOptions[dest]['CommandLineSwitches'].split(',')
         if AllOptions[dest]['Type'] == 'bool':
             if AllOptions[dest]['Default'] == True:
                 action = 'store_false'
             elif AllOptions[dest]['Type'] == 'list':
                 action='append'
             else:
+                # TODO: This needs handling somehow
+                continue
                 raise Exception('Unrecognised option type: ' + AllOptions[dest]['Type'])
-            if not isinstance(AllOptions[dest]['CommandLineSwitches'], list):
-                AllOptions[dest]['CommandLineSwitches'].split(',')
             parser.add_option(*AllOptions[dest]['CommandLineSwitches'],
                     action=action,
                     default=AllOptions[dest]['Default'],