Commits

abudden committed 112c6ec

Fix for command-line switch support (reported by Alexey Radkov).

Comments (0)

Files changed (1)

plugin/TagHighlight/module/cmd.py

                 action='append'
             else:
                 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'],