Create help message.

@return string
547782
public function createHelpMessage()
    {
        $m  = 'Usage:' . PHP_EOL;
        $m .= '  -h,--help' . PHP_EOL;
        $m .= '    Display help message and exit.' . PHP_EOL;
        $m .= '  -p platform (required)' . PHP_EOL;
        $m .= '    Select platform [m]ac or [w]indows or [l]inux.' . PHP_EOL;
        $m .= '    Required except that "--help, -h" is specified.' . PHP_EOL;
        $m .= '  -d output_dir_path' . PHP_EOL;
        $m .= '    Enter the output directory path.' . PHP_EOL;
        $m .= '    If not specified, it is output to the path specified by .env.dafault|.env(DEFAULT_OUTPUT_DIR).' . PHP_EOL;
        $m .= '    If there is still no value, it is output to "selenium-downloader/xxx".' . PHP_EOL;
        $m .= '  -s selenium-standalone-server_ver' . PHP_EOL;
        $m .= '    Enter the version of selenium-standalone-server. (e.g 3.8.1, 3.7(3.7.0)' . PHP_EOL;
        $m .= '    (Recommend version 3.8.1)' . PHP_EOL;
        $m .= '  -c ChromeDriver_ver' . PHP_EOL;
        $m .= '    Enter the version of ChromeDriver. (e.g 2.43' . PHP_EOL;
        $m .= '  -g geckodriver_ver' . PHP_EOL;
        $m .= '    Enter the version of GeckoDriver. (e.g 0.23(0.23.0), 0.20.1' . PHP_EOL;
        $m .= '  -i IEDriverServer_ver' . PHP_EOL;
        $m .= '    Enter the version of IEDriverServer. (e.g 3.14(3.14.0)' . PHP_EOL;
        $m .= '  -b bit_of_os' . PHP_EOL;
        $m .= '    Enter the number of OS bits (32 or 64).' . PHP_EOL;
        $m .= '    Default is "32" (Because key input is earlier than 64bit version).' . PHP_EOL;
        $m .= '    Valid only when IEDriverServer is specified.' . PHP_EOL;
        $m .= PHP_EOL;
        $m .= 'e.g) 1 Basic.' . PHP_EOL;
        $m .= '$ php selenium_downloader.php -p m -s 3.8.1 -c 2.43 -g 0.23' . PHP_EOL;
        $m .= 'e.g) 2 When specifying the output directory.' . PHP_EOL;
        $m .= '$ php selenium_downloader.php -p m -d /your/path/to -s 3.8.1' . PHP_EOL;
        $m .= 'e.g) 3 When downloading the 64 bit version of the IEDriverServer.' . PHP_EOL;
        $m .= '$ php selenium_downloader.php -p w -i 3.14.0 -b 64' . PHP_EOL;
        $m .= 'e.g) 4 When downloading only geckodriver.' . PHP_EOL;
        $m .= '$ php selenium_downloader.php -p m -g 0.23' . PHP_EOL;
        $m .= 'or' . PHP_EOL;
        $m .= '$ php selenium_downloader.php -p m -s "" -c "" -g 0.23' . PHP_EOL;

        return $m;
    }
1119012
def help(self, message, plugin=None):
        """"""
        # help_data = self.load("help_files")
        selected_modules = help_modules = self.load("help_modules")

        self.say("Sure thing, %s." % message.sender.handle)

        help_text = "Here's what I know how to do:"
        if plugin and plugin in help_modules:
            help_text = "Here's what I know how to do about %s:" % plugin
            selected_modules = dict()
            selected_modules[plugin] = help_modules[plugin]

        for k in sorted(selected_modules, key=lambda x: x[0]):
            help_data = selected_modules[k]
            if help_data:
                help_text += "<br/><br/><b>%s</b>:" % k
                for line in help_data:
                    if line:
                        if ":" in line:
                            line = "&nbsp; <b>%s</b>%s" % (line[:line.find(":")], line[line.find(":"):])
                        help_text += "<br/> %s" % line

        self.say(help_text, html=True)
63170
public function renderHelp()
    {
        echo $this->renderVersion();

        // Usage
        echo Line::begin('Usage:', Line::YELLOW)->nl();
        echo Line::begin()
            ->indent(2)
            ->text('generator [context:]subject [options]')->nl(2);

        // Options
        echo Line::begin('Options:', Line::YELLOW)->nl();
        echo Line::begin()
            ->indent(2)
            ->text('--help', Line::MAGENTA)
            ->to(21)
            ->text('-h', Line::MAGENTA)
            ->text('Display this help message.')
            ->nl(2);

        // Generators
        echo Line::begin('Available generators:', Line::YELLOW)->nl();
        foreach ($this->generators as $name => $config) {
            echo Line::begin()
                ->indent(2)
                ->text($name, Line::MAGENTA)
                ->to(24)
                ->text(Generator::create($name, $config)->getDescription())
                ->nl();
        }
    }
1370381
protected function getMessage()
    {
        $domain = Request::server('SERVER_NAME');

        return sprintf(
            $this->getActionMessage($this),
            studly_case($this->resource->name),
            $domain ? " in {$domain}." : '.'
        );
    }
1230414
def help_message():
    """"""
    parser = autopep8.create_parser()
    string_io = io.StringIO()
    parser.print_help(string_io)
    # Undo home directory expansion.
    return string_io.getvalue().replace(os.path.expanduser('~'), '~')
1013538
public function getHelp()
    {
        print Color::head('Help:') . PHP_EOL;
        print Color::colorize('  Lists the commands available in Console') . PHP_EOL . PHP_EOL;

        $this->run([]);
    }
1049169
public function getMessageWithSuggestion(): string
	{
		$message = $this->getMessage();

		if($this->suggestion !== null)
		{
			$message .= ' Did you mean [ ' . $this->suggestion . ' ]?';
		}

		return $message;
	}
1065636
public function createMessage(): Message
    {
        $message = \Swift_Message::newInstance()
            ->setSubject($this->options['subject'])
            ->setFrom($this->options['from'])
            ->setTo($this->options['recipient'])
            ->setBcc($this->options['bcc']);

        $this->setBody($message, $this->options['template'], $this->options['parameters']);

        foreach ($this->options['attachments'] as $file) {
            $message->attach($this->createAttachment($file));
        }

        return $message;
    }
873664
public function create() : string
    {
        return $this->prefix . self::createSlug($this->title) . $this->suffix;
    }
364812
protected function getMessengerHelper()
    {
        if ( $this->messengerHelper )
        {
            return $this->messengerHelper;
        }

        if ( method_exists( $this->view, 'plugin' ) )
        {
            $this->messengerHelper = $this->view
                                          ->plugin( 'messenger' );
        }

        if ( ! $this->messengerHelper instanceof Messenger )
        {
            $this->messengerHelper = new Messenger();
        }

        return $this->messengerHelper;
    }
662530
public function getProcessedHelp()
    {
        $name = $this->name;
        $isSingleCommand = $this->application && $this->application->isSingleCommand();

        $placeholders = [
            '%command.name%',
            '%command.full_name%',
        ];
        $replacements = [
            $name,
            $isSingleCommand ? $_SERVER['PHP_SELF'] : $_SERVER['PHP_SELF'].' '.$name,
        ];

        return str_replace($placeholders, $replacements, $this->getHelp() ?: $this->getDescription());
    }
274402
public function creationOkAction()
    {
        $lng = \Cmf\Language\Factory::get($this);

        HelperFactory::getMessageBox()->addMessage($lng[self::MSG_CREATION_OK]);

        return $this->forward('default');
    }
30386
public function getHelp()
	{
		$help='Usage: '.$this->getCommandRunner()->getScriptName().' '.$this->getName();
		$options=$this->getOptionHelp();
		if(empty($options))
			return $help."\n";
		if(count($options)===1)
			return $help.' '.$options[0]."\n";
		$help.=" <action>\nActions:\n";
		foreach($options as $option)
			$help.='    '.$option."\n";
		return $help;
	}
529491
public function getBetterMessage() {
        if (!$this->betterMessage)
            $this->betterMessage = DebugHelper::composeBetterMessage($this);
        return $this->betterMessage;
    }
675779
public function help()
    {
        $style = new Eurekon\Style(' *** RUN - HELP ***');
        Eurekon\Out::std($style->color('fg', Eurekon\Style::COLOR_GREEN)->get());
        Eurekon\Out::std('');

        $help = new Eurekon\Help('...', true);
        $help->addArgument('', 'directory', 'Config directory to inspect for config file', true, true);
        $help->addArgument('', 'namespace', 'Config namespace (default: global.database)', true, false);
        $help->addArgument('', 'db', 'Database config name', true, false);
        $help->addArgument('', 'item', 'Config name in config file to generate.', true, false);

        $help->display();
    }
970206
protected static function helpAction()
    {
        $class = new \ReflectionClass(static::getCurrentClass());
        $methods = $class->getMethods();
        $commands = array();
        $comments = array();
        $commandLen = 0;
        foreach ($methods as $method) {
            $methodName = (string) $method->getName();
            if (substr($methodName, -6, 6) == 'Action') {
                $command = substr($methodName, 0, strlen($methodName) - 6);
                $comment = preg_replace('#^[^a-zA-Z0-9_.()-]*(.*?)[^a-zA-Z0-9_.()-]*$#', '\1', $method->getDocComment());
                $commandLen = max(strlen($command), $commandLen);
                $commands[] = $command;
                $comments[] = $comment;
            }
        }
        $commandLen++;
        echo "\n  Usage: " . self::green() . basename($_SERVER['argv'][0]) . self::yellow() . ' <command>' . self::resetColor() . " [options]\n\n";
        foreach ($commands as $key => $command) {
            printf(self::yellow() . " %' " . $commandLen . 's' . self::resetColor() . ": %s\n", $command, $comments[$key]);
        }
        echo "\n";
    }
428532
protected function getFormMessagesHelper()
    {
        if ($this->formMessagesHelper) {
            return $this->formMessagesHelper;
        }

        if (method_exists($this->view, 'plugin')) {
            $this->formMessagesHelper = $this->view->plugin($this->defaultFormMessagesHelper);
        }

        if (!$this->formMessagesHelper instanceof AbstractHelper) {
            // @todo Ideally the helper should implement an interface.
            throw InvalidHelperException::invalidHelperInstance($this->formMessagesHelper);
        }

        return $this->formMessagesHelper;
    }