Differential D25031 Diff 83 src/applications/almanac/management/AlmanacManagementRegisterWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/management/AlmanacManagementRegisterWorkflow.php
Context not available. | |||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$device_name = $args->getArg('device'); | $device_name = $args->getArg('device'); | ||||
if (!strlen($device_name)) { | if (!@strlen($device_name)) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht('Specify a device with --device.')); | pht('Specify a device with --device.')); | ||||
} | } | ||||
Context not available. | |||||
$identify_as = $args->getArg('identify-as'); | $identify_as = $args->getArg('identify-as'); | ||||
$raw_device = $device_name; | $raw_device = $device_name; | ||||
if (strlen($identify_as)) { | if (@strlen($identify_as)) { | ||||
$raw_device = $identify_as; | $raw_device = $identify_as; | ||||
} | } | ||||
Context not available. | |||||
} | } | ||||
$private_key_path = $args->getArg('private-key'); | $private_key_path = $args->getArg('private-key'); | ||||
if (!strlen($private_key_path)) { | if (!@strlen($private_key_path)) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht('Specify a private key with --private-key.')); | pht('Specify a private key with --private-key.')); | ||||
} | } | ||||
Context not available. |
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