Save the subcommand pointer in a global variable.