Stataers,

I wrote a C plugin that I can call using this code:

Code:
program r
  preserve
  version 14.2
  syntax varlist(min=1 max=10) [if] [in], k(string)

  plugin call riemann `varlist', "`k'"
end
qui program riemann, plugin using ("riemann.plugin")
Rightfully, in the code argv[0] points to k, the first argument of arglist, therefore invoking the plugin is done as such:
r w a s d, k("my string")

I would prefer the syntax to be as such:
r "my string" w a s d

What are/would be the modifications to the program above to support this syntax, which I think is much more readable.

Thank you for reading