title: Get osx screencapture terminal tool to capture both screens
body: <p>The <code>screencapture</code> terminal app is perfect and takes a screenshot just like you would expect, but it does only take a screenshot of the main window if you have two screens connected.</p>
  
  <pre><code>screencapture screenshot.png
  </code></pre>
  
  <p>But if you do <code>CMD + Shift + 3</code> it takes both screens and saves them as two screenshots.</p>
  
  <p>The man page has a parameter <code>-m</code>, which says <code>Only capture the main monitor</code>, but as you can see i do not use that parameter and you would then assume it would take of both screens, but no.</p>
  
  <p><a href="https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/screencapture.1.html" rel="nofollow">https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/screencapture.1.html</a></p>
  
  <p>How can i make screencapture take both screen or program it to take a screenshot of the second screen? </p>