title: xcode-select --install xcode-select: Error: unknown command option '--install'
body: <p>i am trying to install Command line tools on Xcode from terminal.I am using Xcode </p>
  
  <blockquote>
    <p>Version 5.1.1 (5B1008).
    I have installed command line tools  within Xcode,<img src="https://i.stack.imgur.com/2VY7V.png" alt="enter image description here"></p>
  </blockquote>
  
  <p>Now if i try to install Command Line tools in terminal i get this<img src="https://i.stack.imgur.com/2cj0R.png" alt="enter image description here"></p>
  
  <p>How to solve this ? xcode-select version 2311.I tried the following things</p>
  
  <p>1.my path is /Applications/Xcode.app/Contents/Developer,so i switched like this </p>
  
  <blockquote>
    <p>$ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer.                    </p>
  </blockquote>
  
  <p>Nothing happened i get same error command not found.</p>
  
  <p>2.I followed this link but was not useful <a href="https://stackoverflow.com/questions/11961032/xcrun-error-could-not-stat-active-xcode-path-volumes-xcode-xcode45-dp1-app-c">xcrun: Error: could not stat active Xcode path &#39;/Volumes/Xcode/Xcode45-DP1.app/Contents/Developer&#39;. (No such file or directory)</a></p>
  
  <p>Any thoughts are welcome</p>