Extract subcmd name from the full name