Print help
@return void
17722
protected static function printHelp()
    {
        $term = new Terminal();

        echo 'phpDaemon ' . Daemon::$version . ". http://phpdaemon.net\n";

        self::printUsage();

        echo "\nAlso you can use some optional parameters to override the same configuration variables:\n";

        foreach (self::$params as $name => $desc) {
            if (empty($desc)) {
                continue;
            } elseif (!is_array($desc)) {
                $term->drawParam($name, $desc);
            } else {
                $term->drawParam(
                    $name,
                    isset($desc['desc']) ? $desc['desc'] : '',
                    isset($desc['val']) ? $desc['val'] : ''
                );
            }
        }

        echo "\n";
    }
436503
public function help()
	{
		$this->out();
		$this->out('Joomla Framework Changelog');
		$this->out('-------------------------');
		$this->out();
		$this->out('Usage: ./changelog [-l]');
		$this->out();
		$this->out('  -l  Build the changelog for the latest version only.');
		$this->out('  -d  Debug mode. Test one issue.');
		$this->out();
		$this->out('Output is sent to docs/changelog.html');
		$this->out();
	}
334744
private function help($resource = STDOUT)
    {
        $this->helper->writeLine(sprintf(
            self::HELP_TEMPLATE,
            $this->scriptName
        ), true, $resource);
    }
106428
def print_help(self, prog_name, subcommand):
        
        parser = self.create_parser(prog_name, subcommand)
        parser.print_help()
791473
public void printHelp(final PrintWriter out) {
        HelpFormatter hf = new HelpFormatter();
        StringBuilder sbDivider = new StringBuilder("=");
        while (sbDivider.length() < hf.getPageWidth()) {
            sbDivider.append('=');
        }
        out.println(sbDivider.toString());
        out.println("PLUGIN NAME : " + proxyedPluginDefinition.getName());
        if (description != null && description.trim().length() != 0) {
            out.println(sbDivider.toString());
            out.println("Description : ");
            out.println();
            out.println(description);
        }

        hf.setGroup(mainOptionsGroup);
        // hf.setHeader(m_pluginDef.getName());
        hf.setDivider(sbDivider.toString());
        hf.setPrintWriter(out);
        hf.print();
        // hf.printHelp(m_pluginDef.getName(), m_Options);
    }
413541
private void helpAction(String arg) {
        if (arg == null) {
            printMainUsage();
            return;
        }

        String helpTarget = arg.toLowerCase();

        if (helpTarget.equals(ACTION_VIEW)) {
            printViewUsage();
        } else if (helpTarget.equals(ACTION_COPY)) {
            printCopyUsage();
        } else if (helpTarget.equals(ACTION_LISTINSTANCES)) {
            printListInstancesUsage();
        } else {
            printMainUsage();
        }
    }
1034165
protected function help_formatter( $help = null ) 
	{
		if ( is_null( $help ) ) 
		{
			CCCli::line( 'Invalid data passed to help formatter.' , 'red' ); return;
		}
	
		$output = array();
		
		// print the name
		if ( isset( $help['name'] ) ) 
		{	
			$output[] = '+-'.str_repeat( '-', strlen( $help['name'] ) ).'-+';
			$output[] = '| '.CCCli::color( $help['name'], 'light_yellow' ).' |';
			$output[] = '+-'.str_repeat( '-', strlen( $help['name'] ) ).'-+';	
		}
		
		// description
		if ( isset( $help['desc'] ) ) 
		{
			$output[] = wordwrap( str_replace( "\n", "\n".' * ', $help['desc'] ), 60 );	
		}
		
		// list the actions 
		if ( isset( $help['actions'] ) && !empty( $help['actions'] ) ) 
		{	
			// for every action in this console controller
			foreach( $help['actions'] as $action => $attributes )
			{
				// print the action
				$output[] = '';
				$output[] = '| '.CCStr::suffix( get_called_class(), '\\' ).'::'.CCCli::color( $action, 'cyan' );
				$output[] = '|';
				
				// for every attribute ( arguments, usage etc. )
				foreach( $attributes as $attribute => $options )
				{
					$output[] = '| '.CCCli::color( ucfirst( $attribute ), 'light_yellow' );
					
					// if we just got a string
					if ( is_string( $options ) )
					{
						$output[] = '|  '.CCCli::color( $options, 'green' );
					}
					// a key value array
					elseif ( is_array( $options ) )
					{
						// print every option and its description
						foreach( $options as $option => $description )
						{
							$buffer = CCCli::color( $option, 'green' );
							$buffer .= str_repeat( ' ', 35 - strlen( $buffer ) );
							$buffer .= $description;
							$buffer = '|  '.$buffer;
							
							// is the line to long?
							if ( strlen( $buffer ) > 80 )
							{
								$overflow = substr( $buffer, 80 );
								
								$buffer = substr( $buffer, 0, 80 )."\n";
								
								$overflow = wordwrap( $overflow, 45 );
								$overflow = explode( "\n", $overflow );
								
								foreach( $overflow as $key => $value )
								{
									$overflow[$key] = '| '.str_repeat( ' ',  25 ).trim( $value );	
								}
								
								$buffer .= implode( "\n", $overflow );
							}
							
							$output[] = $buffer;
						}
					}
					
					$output[] = '|';
				}
				
				array_pop( $output );
			}
		}
		
		return $output;
	}
864659
def help(self):
        """"""

        if self.params:
            command = self.params.pop().lstrip('-')

            if command in self.command.documentation:
                (aliases, doc) = self.command.documentation[command]
                (synopsis, body) = self._split_docstring(doc)

                print(synopsis)
                if body:
                    print()
                    print(body)

            else:
                raise CommandError('command {0} not known'.format(command))
        else:
            (synopsis, body) = self._split_docstring(__doc__)

            print(synopsis)
            print()
            print(body)
            print()
            print('Commands:')
            for command in sorted(self.command.documentation.keys()):
                print('   ', ', '.join(self.command.documentation[command][0]))
            print()
            print('Use "pymoctool --help COMMAND" for additional '
                  'information about a command.')
562071
@Override
    public String printHelp() {
        List<CommandLineParser<CI>> parsers = getChildParsers();
        if (parsers != null && parsers.size() > 0) {
            StringBuilder sb = new StringBuilder();
            sb.append(processedCommand.printHelp(helpNames()))
                    .append(Config.getLineSeparator())
                    .append(processedCommand.name())
                    .append(" commands:")
                    .append(Config.getLineSeparator());

            int maxLength = 0;

            for (CommandLineParser child : parsers) {
                int length = child.getProcessedCommand().name().length();
                if (length > maxLength) {
                    maxLength = length;
                }
            }

            for (CommandLineParser child : parsers) {
                sb.append(child.getFormattedCommand(4, maxLength + 2))
                        .append(Config.getLineSeparator());
            }

            return sb.toString();
        }
        else
            return processedCommand.printHelp(helpNames());
    }
556958
function printOut(){
		for($i=0;$i<sizeof($this->_Buffer);$i++){
			$this->_Buffer[$i]->flush();
		}
	}
1002394
protected function printWarnings(): void
    {
        foreach ($this->warnings as $error) {
            $this->output->write('<fg=yellow>WARNING </> ');

            if ($error['type'] == 'param-missing') {
                $this->output->write('<info>' . $error['method'] . '</info> - @param <fg=cyan>' . $error['param'] . '</> missing.');
            }

            if ($error['type'] == 'param-mismatch') {
                $paramType = implode('|', (array)$error['param-type']);
                $this->output->write('<info>' . $error['method'] . '</info> - @param <fg=cyan>' . $error['param'] . '</> (' . $error['doc-type'] . ')  does not match method signature (' . $paramType . ').');
            }

            if ($error['type'] == 'return-missing') {
                $this->output->write('<info>' . $error['method'] . '</info> - @return missing.');
            }

            if ($error['type'] == 'return-mismatch') {
                $this->output->write('<info>' . $error['method'] . '</info> - @return <fg=cyan>' . $error['doc-type'] . '</>  does not match method signature (' . $error['return-type'] . ').');
            }

            $this->output->writeln('');
        }
    }
330633
public function outputHelp($command = null)
    {
        $help_options = $this->config->get('cli_help_option', 'h');

        if (isset($command) || $this->getParam($help_options)) {

            if (!isset($command)) {
                $command = $this->command;
            }

            $aliases = $this->route->getAliases();

            if (isset($aliases[$command])) {
                $command = $aliases[$command];
            }

            $routes = $this->route->getList();

            if (empty($routes[$command])) {
                $this->errorAndExit($this->text('Unknown command'));
            }

            $this->printHelpText($routes[$command]);
            $this->output();
        }
    }
780723
public function printWidgetTree()
    {
        echo get_class($this), ' ', $this->id;

        if (count($this->children) > 0) {
            echo '<ul>';
            foreach ($this->children as $child) {
                echo '<li>';
                $child->printWidgetTree();
                echo '</li>';
            }
            echo '</ul>';
        }
    }
900297
public function infof()
    {
        $args = func_get_args();
        $format = array_shift($args);
        $this->info(vsprintf($format, $args));
    }
1099088
def help(cls):
        """"""
        print("for named colors use :")
        for c in sorted(list(cls.colors.items())):
            print("{:10} {}".format(*c))
528935
public function helperAction() {
        $name = ucfirst($this->getFirstParamOrAsk('Enter application\'s name'));;
        $path = DC::getEnvironment()->getUserClassesRoot() . 'helpers/';
        FSService::makeWritable($path);
        $this->safeCreateFromTemplate($path . $name . 'Block.php', '_helper');

    }
716922
public function printPHPCSUsage()
    {
        ob_start();
        parent::printPHPCSUsage();
        $help = ob_get_contents();
        ob_end_clean();

        echo $this->fixHelp($help);
    }