Feb-14-2018, 07:36 AM
i am wanting to implement a rather large command tree. this is on command as far as the system shell knows, it will be given a sequence of arguments. for each subcommand, more arguments designate deeper subcommands until some code for some subcommand does special things with particular arguments. for example
material metal silver clean polish help
might be on branch of a command tree. i am wondering if there is a good pattern to implement this on, such as each branch down the tree importing a specific module and calling some specific function. anyone have any example code patterns or ideas?