/** * Builds nicely formatted help text based on the arguments spec * * @param ArgumentsSpec $arguments_spec The arguments specification * * @return string formatted help text */ public static function buildHelpText(ArgumentsSpec $arguments_spec) { $gen = new HelpGenerator($arguments_spec); return $gen->build(); }