Skip to content

Instantly share code, notes, and snippets.

@Andegawen
Created October 30, 2017 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Andegawen/724112b4cb1a14488a880e96dfa68732 to your computer and use it in GitHub Desktop.
Save Andegawen/724112b4cb1a14488a880e96dfa68732 to your computer and use it in GitHub Desktop.
Provide example of suggestion for clink
local chris_parser = parser({
"m1" .. parser({
"m1a",
"m2a"}),
"m2" .. parser({
"m2a",
"m2b" ..parser({"--x"})}),
}, "-h" .. parser({}))
--register parser under first keyword
clink.arg.register_parser("chris1", chris_parser)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment