Parserparser("X11 capture application for Hyperion. Will automatically search a Hyperion server if -a option isn't used. Please note that if you have more than one server running it's more or less random which one will be used.");
IntOption&argCropWidth=parser.add<IntOption>(0x0,"crop-width","Number of pixels to crop from the left and right sides of the picture before decimation [default: %1]","0");
IntOption&argCropHeight=parser.add<IntOption>(0x0,"crop-height","Number of pixels to crop from the top and the bottom of the picture before decimation [default: %1]","0");
IntOption&argCropLeft=parser.add<IntOption>(0x0,"crop-left","Number of pixels to crop from the left of the picture before decimation (overrides --crop-width)");
IntOption&argCropRight=parser.add<IntOption>(0x0,"crop-right","Number of pixels to crop from the right of the picture before decimation (overrides --crop-width)");
IntOption&argCropTop=parser.add<IntOption>(0x0,"crop-top","Number of pixels to crop from the top of the picture before decimation (overrides --crop-height)");
IntOption&argCropBottom=parser.add<IntOption>(0x0,"crop-bottom","Number of pixels to crop from the bottom of the picture before decimation (overrides --crop-height)");
IntOption&argSizeDecimation=parser.add<IntOption>('s',"size-decimator","Decimation factor for the output size [default=%1]","8");
BooleanOption&argScreenshot=parser.add<BooleanOption>(0x0,"screenshot","Take a single screenshot, save it to file and quit");
Option&argAddress=parser.add<Option>('a',"address","Set the address of the hyperion server [default: %1]","127.0.0.1:19445");