1 diff --git a/src/toolset/workflow/ArcanistShellCompleteWorkflow.php b/src/toolset/workflow/ArcanistShellCompleteWorkflow.php
2 index 9c2fcf9a..307231c8 100644
3 --- a/src/toolset/workflow/ArcanistShellCompleteWorkflow.php
4 +++ b/src/toolset/workflow/ArcanistShellCompleteWorkflow.php
5 @@ -92,7 +92,7 @@ EOTEXT
6 $argv = $this->getArgument('argv');
8 $is_generate = $this->getArgument('generate');
9 - $is_shell = (bool)strlen($this->getArgument('shell'));
10 + $is_shell = phutil_nonempty_string($this->getArgument('shell'));
11 $is_current = $this->getArgument('current');