cli_classic: Rewrite programmer argument parsing

Only break programmer name and arguments and use the libflashprog API
to do the actuall programmer lookup. This assumes that programmer
names don't contain a colon. Otherwise it should yield the same
results as the old code.

Change-Id: Ie70df81a0531470a6bb005d78346719b4da49134
Signed-off-by: Nico Huber <nico.h@gmx.de>
diff --git a/meson.build b/meson.build
index 171cd0c..ddb705a 100644
--- a/meson.build
+++ b/meson.build
@@ -537,12 +537,7 @@
   endif
 endif
 
-if config_default_programmer_name != ''
-  cargs += '-DCONFIG_DEFAULT_PROGRAMMER_NAME=&programmer_' + config_default_programmer_name
-else
-  cargs += '-DCONFIG_DEFAULT_PROGRAMMER_NAME=NULL'
-endif
-
+cargs += '-DCONFIG_DEFAULT_PROGRAMMER_NAME="' + config_default_programmer_name + '"'
 cargs += '-DCONFIG_DEFAULT_PROGRAMMER_ARGS="' + config_default_programmer_args + '"'
 
 install_headers([