private function parseArguments()
    {
        $args = $_SERVER['argv'];

        // The first argument is the script name, so drop it
        array_shift($args);

        // Loop through each of the arguments
        foreach ($args as $index => $task) {
            if (strpos($task, '-') === 0) {
                // Argument is an option, so we remove it
                unset($args[$index]);

                // If the next argument is the option's value,
                // remove that as well.
                $option = preg_replace('/^[-]{1,2}/', '', $task);
                if (isset($args[$index + 1]) && $args[$index + 1] === $this->options->{$option}) {
                    unset($args[$index + 1]);
                }
                continue;
            }
        }

        return $this->args = $args;
    }