func processProxyCmd(osArgs []string, fset *flag.FlagSet, cmdLibrary CmdLibrary) bool {
	if fset != nil && len(osArgs) > 0 {
		if err := fset.Parse(osArgs[1:]); err == nil {
			osArgs = append([]string{osArgs[0]}, fset.Args()...)
		}
	}
	if len(osArgs) <= 1 || !isProxyCmd(cmdType(osArgs[1])) {
		return false
	}
	rawCmd := unproxyCmd(cmdType(osArgs[1]))
	cmd := cmdLibrary.MustNewCmd(rawCmd.Name())
	os.Args = append(osArgs[:1], osArgs[2:]...)
	cmdLibrary.Run(cmd)
	return true
}
processProxyCmd checks the second non-flag element of the provided osArgs slice (which is the first argument to the
executable) to see if it is a proxy command. If it is, "os.Args" is set to be the non-proxy command arguments and the
un-proxied command is run; otherwise, it is a no-op. Returns true if the command was proxied and the proxied command
was run; false otherwise. Note that, if a proxied command is run, it is possible that the proxied command may call
some form of "os.Exit" itself. If this is the case, then this function will be terminal and will not return a value.
package amalgomated
import (
	"flag"
	"os"
	"strings"
)
const ProxyCmdPrefix = "__"
func RunApp(osArgs []string, fset *flag.FlagSet, cmdLibrary CmdLibrary, app func(osArgs []string) int) int {
	if processProxyCmd(osArgs, fset, cmdLibrary) {
		return 0
	}
	return app(osArgs)
}