Hello Rafia,
> if (my_command->argc > 2)
> + syntax_error(source, lineno, my_command->line, my_command->argv[0],
> + "at most on argument expected", NULL, -1);
>
> I suppose you mean 'one' argument here.
Indeed.
> Apart from that indentation is not correct as per pgindent, please check.
I guess that you are refering to switch/case indentation which my emacs
does not do as expected.
Please find attached a v8 which hopefully fixes these two issues.
--
Fabien.