Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistHelpWorkflow.php
| Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | foreach ($workflows as $command => $workflow) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| if (!empty($spec['hide'])) { | if (!empty($spec['hide'])) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| if (isset($spec['param'])) { | if (isset($spec['param'])) { | ||||
| if (isset($spec['short'])) { | if (isset($spec['short'])) { | ||||
| $optref[] = phutil_console_format( | $optref[] = phutil_console_format( | ||||
| " __--%s__ __%s__, __-%s__ __%s__", | ' __--%s__ __%s__, __-%s__ __%s__', | ||||
| $argument, | $argument, | ||||
| $spec['param'], | $spec['param'], | ||||
| $spec['short'], | $spec['short'], | ||||
| $spec['param']); | $spec['param']); | ||||
| } else { | } else { | ||||
| $optref[] = phutil_console_format( | $optref[] = phutil_console_format( | ||||
| " __--%s__ __%s__", | ' __--%s__ __%s__', | ||||
| $argument, | $argument, | ||||
| $spec['param']); | $spec['param']); | ||||
| } | } | ||||
| } else { | } else { | ||||
| if (isset($spec['short'])) { | if (isset($spec['short'])) { | ||||
| $optref[] = phutil_console_format( | $optref[] = phutil_console_format( | ||||
| " __--%s__, __-%s__", | ' __--%s__, __-%s__', | ||||
| $argument, | $argument, | ||||
| $spec['short']); | $spec['short']); | ||||
| } else { | } else { | ||||
| $optref[] = phutil_console_format( | $optref[] = phutil_console_format( | ||||
| " __--%s__", | ' __--%s__', | ||||
| $argument); | $argument); | ||||
| } | } | ||||
| } | } | ||||
| if (isset($config_arguments[$argument])) { | if (isset($config_arguments[$argument])) { | ||||
| $optref[] = " (This is a custom option for this ". | $optref[] = ' (This is a custom option for this '. | ||||
| "project.)"; | 'project.)'; | ||||
| } | } | ||||
| if (isset($spec['supports'])) { | if (isset($spec['supports'])) { | ||||
| $optref[] = " Supports: ". | $optref[] = ' Supports: '. | ||||
| implode(', ', $spec['supports']); | implode(', ', $spec['supports']); | ||||
| } | } | ||||
| if (isset($spec['help'])) { | if (isset($spec['help'])) { | ||||
| $docs = $spec['help']; | $docs = $spec['help']; | ||||
| } else { | } else { | ||||
| $docs = 'This option is not documented.'; | $docs = 'This option is not documented.'; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines | |||||