Parse plugin args with freetext parser

Also allow adding to plugin autocompleters
This commit is contained in:
James Booth
2016-03-15 22:32:44 +00:00
parent 06523f9474
commit 1075f07ff5
2 changed files with 15 additions and 6 deletions

View File

@@ -108,7 +108,7 @@ plugins_run_command(const char * const input)
PluginCommand *command = p_command->data;
if (g_strcmp0(split[0], command->command_name) == 0) {
gboolean result;
gchar **args = parse_args(input, command->min_args, command->max_args, &result);
gchar **args = parse_args_with_freetext(input, command->min_args, command->max_args, &result);
if (result == FALSE) {
ui_invalid_command_usage(command->command_name, NULL);
g_strfreev(split);