Bug correction in inheritance: adding add_subcommand method