-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Instead of representing the params, cmds and subcmds as data.frame(), it might be easier to use lists. eg:
parser
|-cmds
|-cmd1
|-name: "add"
|-helptext: "help text"
|-cmd2
|-name: "delete"
|-helptext: "help text"
|-params
|-param1
|-lparam: "print"
|-sparam: "p"
|-helptext: "help text"
|-type: "bool"
|-default: FALSE
|-param2
|-lparam: "infile"
|-sparam: "i"
|-helptext: "help text"
|-type: "variable"
.
.
.
Then you can access eg all cmds with lapply(parser$cmds, '[[', 'cmd')
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request