diff --git a/app/Commands/ShareCurrentWorkingDirectoryCommand.php b/app/Commands/ShareCurrentWorkingDirectoryCommand.php index 91c203d..b7d2dd4 100644 --- a/app/Commands/ShareCurrentWorkingDirectoryCommand.php +++ b/app/Commands/ShareCurrentWorkingDirectoryCommand.php @@ -10,9 +10,10 @@ class ShareCurrentWorkingDirectoryCommand extends ShareCommand { $this->input->setArgument('host', basename(getcwd()).'.'.$this->detectTld()); - $subdomain = str_replace('.', '_', basename(getcwd())); - - $this->input->setOption('subdomain', $subdomain); + if (! $this->hasOption('subdomain')) { + $subdomain = str_replace('.', '_', basename(getcwd())); + $this->input->setOption('subdomain', $subdomain); + } parent::handle(); }