localhost:~ apple$ screencapture -h
screencapture: illegal option -- h
usage: screencapture [-icMPmwsWxSCUtoa] [files]
-c force screen capture to go tothe clipboard // 自动截取全屏并且保存到黏贴板
-C capture the cursor as well asthe screen. only in non-interactive modes // 捕获光标以及屏幕
-d display errors tothe user graphically
-i capture screen interactively, by selection or window
control key - causes screen shot to go to clipboard
space key - toggle between mouse selection and
window selection modes
escape key - cancels interactive screen shot
-m only capture the main monitor, undefined if -i is set
-M screen capture output will go toanew Mail message
-o in window capture mode, donot capture the shadow ofthe window
-P screen capture output will openin Preview
-s only allow mouse selection mode
-S in window capture mode, capture the screen notthe window
-t<format> image formattocreate, default is png (other options include pdf, jpg, tiff and other formats)
-T<seconds> Take the picture aftera delay of <seconds>, default is 5
-w only allow window selection mode
-W start interaction in window selection mode
-x donot play sounds
-adonotinclude windows attached to selected windows
-r donotadd dpi meta data to image
-l<windowid> capture this windowsid
-R<x,y,w,h> capture screen rect
-B<bundleid> screen capture output will openin app with bundleidBS
files where to save the screen capture, 1file per screen