Changeset View
Changeset View
Standalone View
Standalone View
src/runtime/ArcanistRuntime.php
Show First 20 Lines • Show All 182 Lines • ▼ Show 20 Lines | try { | ||||
'When running noninteractively, you MUST provide "--" to all '. | 'When running noninteractively, you MUST provide "--" to all '. | ||||
'commands (even if they take no arguments).')); | 'commands (even if they take no arguments).')); | ||||
$log->writeHint( | $log->writeHint( | ||||
pht('USAGE'), | pht('USAGE'), | ||||
tsprintf( | tsprintf( | ||||
'%s <__%s__>', | '%s <__%s__>', | ||||
pht('Learn More:'), | pht('Learn More:'), | ||||
'https://phurl.io/u/noninteractive')); | 'https://secure.phabricator.com/T13491')); | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht('Missing required "--" in argument list.')); | pht('Missing required "--" in argument list.')); | ||||
} catch (PhutilArgumentUsageException $usage_exception) { | } catch (PhutilArgumentUsageException $usage_exception) { | ||||
// TODO: This is very, very hacky; we're trying to let errors like | // TODO: This is very, very hacky; we're trying to let errors like | ||||
// "you passed the wrong arguments" through but fall back to classic | // "you passed the wrong arguments" through but fall back to classic | ||||
// mode if the workflow itself doesn't exist. | // mode if the workflow itself doesn't exist. | ||||
▲ Show 20 Lines • Show All 715 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0