title: cannot use command line arguments for vs code in mac (zsh)
body: <p>I'm trying to use command line arguments for vscode, but it treats those arguments as if it were a directory </p>
  
  <p>steps that are already done:
  1- ran Shell Command: Install 'code' command in PATH from vs code
  2- machine restarted for PATH to take effect</p>
  
  <p>code command line syntax: code [path] [arguments], in the following case -h refers to help</p>
  
  <p>refer to <a href="https://code.visualstudio.com/docs/editor/command-line" rel="nofollow noreferrer">https://code.visualstudio.com/docs/editor/command-line</a></p>
  
  <p>e.g.</p>
  
  <pre><code>code -h
  </code></pre>
  
  <p>gives:</p>
  
  <pre><code>The file /Users/dshamim/-h does not exist.
  </code></pre>
  
  <p>running "where code" gives:</p>
  
  <pre><code>code () {
      if [[ $# = 0 ]]
      then
          open -a "Visual Studio Code"
      else
          local argPath="$1"
          [[ $1 = /* ]] &amp;&amp; argPath="$1"  || argPath="$PWD/${1#./}"
          open -a "Visual Studio Code" "$argPath"
      fi
  }
  /usr/local/bin/code
  /usr/local/bin/code
  </code></pre>
  
  <p>any one experienced this or how to get the command line arguments to work ? I need to export the list of extensions by code --list-extensions</p>