PHP Classes

File: vendor/symfony/symfony/src/Symfony/Component/Console/Tests/Fixtures/application_1.md

Recommend this page to a friend!
  Classes of Murat Cileli   Papernic   vendor/symfony/symfony/src/Symfony/Component/Console/Tests/Fixtures/application_1.md   Download  
File: vendor/symfony/symfony/src/Symfony/Component/Console/Tests/Fixtures/application_1.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: Papernic
Manage documents colaboratively
Author: By
Last change:
Date: 7 years ago
Size: 3,746 bytes
 

Contents

Class file image Download

UNKNOWN

  • help
  • list

help

  • Description: Displays help for a command
  • Usage:

    * `help [--xml] [--format FORMAT] [--raw] [--] [<command_name>]`

The <info>help</info> command displays help for a given command:

<info>php app/console help list</info>

You can also output the help in other formats by using the <comment>--format</comment> option:

<info>php app/console help --format=xml list</info>

To display the list of available commands, please use the <info>list</info> command.

Arguments:

command_name:

  • Name: command_name
  • Is required: no
  • Is array: no
  • Description: The command name
  • Default: `'help'`

Options:

xml:

  • Name: `--xml`
  • Shortcut: <none>
  • Accept value: no
  • Is value required: no
  • Is multiple: no
  • Description: To output help as XML
  • Default: `false`

format:

  • Name: `--format`
  • Shortcut: <none>
  • Accept value: yes
  • Is value required: yes
  • Is multiple: no
  • Description: The output format (txt, xml, json, or md)
  • Default: `'txt'`

raw:

  • Name: `--raw`
  • Shortcut: <none>
  • Accept value: no
  • Is value required: no
  • Is multiple: no
  • Description: To output raw command help
  • Default: `false`

help:

  • Name: `--help`
  • Shortcut: `-h`
  • Accept value: no
  • Is value required: no
  • Is multiple: no
  • Description: Display this help message
  • Default: `false`

quiet:

  • Name: `--quiet`
  • Shortcut: `-q`
  • Accept value: no
  • Is value required: no
  • Is multiple: no
  • Description: Do not output any message
  • Default: `false`

verbose:

  • Name: `--verbose`
  • Shortcut: `-v|-vv|-vvv`
  • Accept value: no
  • Is value required: no
  • Is multiple: no
  • Description: Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
  • Default: `false`

version:

  • Name: `--version`
  • Shortcut: `-V`
  • Accept value: no
  • Is value required: no
  • Is multiple: no
  • Description: Display this application version
  • Default: `false`

ansi:

  • Name: `--ansi`
  • Shortcut: <none>
  • Accept value: no
  • Is value required: no
  • Is multiple: no
  • Description: Force ANSI output
  • Default: `false`

no-ansi:

  • Name: `--no-ansi`
  • Shortcut: <none>
  • Accept value: no
  • Is value required: no
  • Is multiple: no
  • Description: Disable ANSI output
  • Default: `false`

no-interaction:

  • Name: `--no-interaction`
  • Shortcut: `-n`
  • Accept value: no
  • Is value required: no
  • Is multiple: no
  • Description: Do not ask any interactive question
  • Default: `false`

list

  • Description: Lists commands
  • Usage:

    * `list [--xml] [--raw] [--format FORMAT] [--] [<namespace>]`

The <info>list</info> command lists all commands:

<info>php app/console list</info>

You can also display the commands for a specific namespace:

<info>php app/console list test</info>

You can also output the information in other formats by using the <comment>--format</comment> option:

<info>php app/console list --format=xml</info>

It's also possible to get raw list of commands (useful for embedding command runner):

<info>php app/console list --raw</info>

Arguments:

namespace:

  • Name: namespace
  • Is required: no
  • Is array: no
  • Description: The namespace name
  • Default: `NULL`

Options:

xml:

  • Name: `--xml`
  • Shortcut: <none>
  • Accept value: no
  • Is value required: no
  • Is multiple: no
  • Description: To output list as XML
  • Default: `false`

raw:

  • Name: `--raw`
  • Shortcut: <none>
  • Accept value: no
  • Is value required: no
  • Is multiple: no
  • Description: To output raw command list
  • Default: `false`

format:

  • Name: `--format`
  • Shortcut: <none>
  • Accept value: yes
  • Is value required: yes
  • Is multiple: no
  • Description: The output format (txt, xml, json, or md)
  • Default: `'txt'`