Skip to content

Commit

Permalink
CLeanup input options
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Oct 18, 2023
1 parent 0b8e9f7 commit 732934b
Showing 1 changed file with 10 additions and 32 deletions.
42 changes: 10 additions & 32 deletions libraries/src/Application/ConsoleApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -550,39 +550,17 @@ protected function populateHttpHost()
*/
protected function getDefaultInputDefinition(): InputDefinition
{
return new InputDefinition(
[
new InputArgument('command', InputArgument::REQUIRED, 'The command to execute'),
new InputOption(
'--live-site',
null,
InputOption::VALUE_OPTIONAL,
'The URL to your site, e.g. https://www.example.com'
),
new InputOption('--help', '-h', InputOption::VALUE_NONE, 'Display the help information'),
new InputOption(
'--quiet',
'-q',
InputOption::VALUE_NONE,
'Flag indicating that all output should be silenced'
),
new InputOption(
'--verbose',
'-v|vv|vvv',
InputOption::VALUE_NONE,
'Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug'
),
new InputOption('--version', '-V', InputOption::VALUE_NONE, 'Displays the application version'),
new InputOption('--ansi', '', InputOption::VALUE_NONE, 'Force ANSI output'),
new InputOption('--no-ansi', '', InputOption::VALUE_NONE, 'Disable ANSI output'),
new InputOption(
'--no-interaction',
'-n',
InputOption::VALUE_NONE,
'Flag to disable interacting with the user'
),
]
$inputDefinition = parent::getDefaultInputDefinition();
$inputDefinition->addOption(
new InputOption(
'--live-site',
null,
InputOption::VALUE_OPTIONAL,
'The URL to your site, e.g. https://www.example.com'
)
);

return $inputDefinition;
}

/**
Expand Down

0 comments on commit 732934b

Please sign in to comment.