Centralized subcommand permission checking and corrected formatting