Fixed bug with command line parser.
The command line parser was not taking into account strings with '-'
Some extra white space noise...fixed my emacs to remove end of line spaces on save to ensure continuos clean
lint
@@ -173,7 +173,7 @@ class Chip:
# 'source' positional argument
for item in sys.argv[1:]:
#Split switches with one character and a number after (O0,O1,O2)
- opt = re.search(r'(\-\w)(\d+)',item)
+ opt = re.match(r'(\-\w)(\d+)',item)
#Split assign switches (-DCFG_ASIC=1)
assign = re.search(r'(\-\w)(\w+\=\w+)',item)
#Split plusargs (+incdir+/path)
