An options parser for nested commands