Fixes the spacing on the help text.

This commit is contained in:
kevin 2019-07-02 07:06:48 -04:00
parent 46581fcab9
commit 5f4e7ec6c2

View File

@ -27,68 +27,55 @@ int main(int argc, char *argv[])
parser.addHelpOption(); parser.addHelpOption();
parser.addVersionOption(); parser.addVersionOption();
QCommandLineOption address(QStringList() << "a" << "address", QCommandLineOption address(QStringList() << "a" << "address",
QCoreApplication::translate("main", "Address to the hyperion json server. (ex. 127.0.0.1)"), QCoreApplication::translate("main", "Address to the hyperion json server. (ex. 127.0.0.1)")
QCoreApplication::translate("main", "hyperion address")
); );
parser.addOption(address); parser.addOption(address);
QCommandLineOption port(QStringList() << "p" << "port", QCommandLineOption port(QStringList() << "p" << "port",
QCoreApplication::translate("main", "Port for the hyperion json server. (ex. 19444)"), QCoreApplication::translate("main", "Port for the hyperion json server. (ex. 19444)")
QCoreApplication::translate("main", "hyperion port")
); );
parser.addOption(port); parser.addOption(port);
QCommandLineOption scale(QStringList() << "s" << "scale", QCommandLineOption scale(QStringList() << "s" << "scale",
QCoreApplication::translate("main", "Divisor used to scale your screen resolution (ex. 8 ; if your screen is 1920x1080, the result image sent to hyperion is 240x135"), QCoreApplication::translate("main", "Divisor used to scale your screen resolution (ex. 8 ; if your screen is 1920x1080, the result image sent to hyperion is 240x135")
QCoreApplication::translate("main", "scale dividor")
); );
parser.addOption(scale); parser.addOption(scale);
QCommandLineOption frameskip(QStringList() << "f" << "frameskip", QCommandLineOption frameskip(QStringList() << "f" << "frameskip",
QCoreApplication::translate("main", "How many X11 frames to skip over. (ex. 4 ; 1 frame will be scaled and sent to hyperion and 4 will be ignored)"), QCoreApplication::translate("main", "How many X11 frames to skip over. (ex. 4 ; 1 frame will be scaled and sent to hyperion and 4 will be ignored)")
QCoreApplication::translate("main", "X11 frames to skip")
); );
parser.addOption(frameskip); parser.addOption(frameskip);
QCommandLineOption inactiveTime(QStringList() << "i" << "inactive", QCommandLineOption inactiveTime(QStringList() << "i" << "inactive",
QCoreApplication::translate("main", "How many seconds after the screen is inactive to turn off the LED's. Set to 0 to disable."), QCoreApplication::translate("main", "How many seconds after the screen is inactive to turn off the LED's. Set to 0 to disable.")
QCoreApplication::translate("main", "seconds before turning off LEDs")
); );
parser.addOption(inactiveTime); parser.addOption(inactiveTime);
QCommandLineOption inactiveType(QStringList() << "j" << "inactivetype", QCommandLineOption inactiveType(QStringList() << "j" << "inactivetype",
QCoreApplication::translate("main", "If `i` or `inactive` is set, how to determine activity, using (1) Xscreensaver (based on amount of time since user input activity) or (0) Xdamage (based on amount of time since screen activity change)"), QCoreApplication::translate("main", "If `i` or `inactive` is set, how to determine activity, using (1) Xscreensaver (based on amount of time since user input activity) or (0) Xdamage (based on amount of time since screen activity change)")
QCoreApplication::translate("main", "1 to use Xscreensaver or 0 to use Xdamage for inactivity tracking")
); );
parser.addOption(inactiveType); parser.addOption(inactiveType);
QCommandLineOption redAdjust(QStringList() << "r" << "redadjust", QCommandLineOption redAdjust(QStringList() << "r" << "redadjust",
QCoreApplication::translate("main", "Adjustment of the red color (requires 3 space seperated values between 0 and 255) (ex. \"255,10,0\")"), QCoreApplication::translate("main", "Adjustment of the LED's red color (requires 3 space seperated values between 0 and 255) (ex. \"255,10,0\")")
QCoreApplication::translate("main", "adjusts red color of LEDs")
); );
parser.addOption(redAdjust); parser.addOption(redAdjust);
QCommandLineOption greenAdjust(QStringList() << "g" << "greenadjust", QCommandLineOption greenAdjust(QStringList() << "g" << "greenadjust",
QCoreApplication::translate("main", "Adjustment of the green color (requires 3 space seperated values between 0 and 255) (ex. \"75,210,0\")"), QCoreApplication::translate("main", "Adjustment of the LED's green color (requires 3 space seperated values between 0 and 255) (ex. \"75,210,0\")")
QCoreApplication::translate("main", "adjusts green color of LEDs")
); );
parser.addOption(greenAdjust); parser.addOption(greenAdjust);
QCommandLineOption blueAdjust(QStringList() << "b" << "blueadjust", QCommandLineOption blueAdjust(QStringList() << "b" << "blueadjust",
QCoreApplication::translate("main", "Adjustment of the blue color (requires 3 space seperated values between 0 and 255) (ex. \"0,10,160\")"), QCoreApplication::translate("main", "Adjustment of the LED's blue color (requires 3 space seperated values between 0 and 255) (ex. \"0,10,160\")")
QCoreApplication::translate("main", "adjusts blue color of LEDs")
); );
parser.addOption(blueAdjust); parser.addOption(blueAdjust);
QCommandLineOption temperature(QStringList() << "t" << "temperature", QCommandLineOption temperature(QStringList() << "t" << "temperature",
QCoreApplication::translate("main", "Adjustment of the LED color temperature (requires 3 space seperated values between 0 and 255) (ex. \"255,255,250\")"), QCoreApplication::translate("main", "Adjustment of the LED's color temperature (requires 3 space seperated values between 0 and 255) (ex. \"255,255,250\")")
QCoreApplication::translate("main", "adjusts LED color temperature")
); );
parser.addOption(temperature); parser.addOption(temperature);
QCommandLineOption threshold(QStringList() << "d" << "threshold", QCommandLineOption threshold(QStringList() << "d" << "threshold",
QCoreApplication::translate("main", "Set the threshold of the leds (requires 3 space seperated values between 0.0 and 1.0) (ex. \"0.0025,0.005,0.01\")"), QCoreApplication::translate("main", "Set the threshold of the LED's (requires 3 space seperated values between 0.0 and 1.0) (ex. \"0.0025,0.005,0.01\")")
QCoreApplication::translate("main", "adjusts LED threshold")
); );
parser.addOption(threshold); parser.addOption(threshold);
QCommandLineOption transform(QStringList() << "l" << "transform", QCommandLineOption transform(QStringList() << "l" << "transform",
QCoreApplication::translate("main", "Adjusts the luminance / saturation of the leds values are in this order: luminanceGain, luminanceMin, saturationL (requires 3 space seperated values between 0.0 and 1.0) (ex. \"1.0,0.01,1.0\")"), QCoreApplication::translate("main", "Adjusts the luminance / saturation of the LED's values are in this order: luminanceGain, luminanceMin, saturationL (requires 3 space seperated values between 0.0 and 1.0) (ex. \"1.0,0.01,1.0\")")
QCoreApplication::translate("main", "adjusts luminance / saturation")
); );
parser.addOption(transform); parser.addOption(transform);
QCommandLineOption filter(QStringList() << "x" << "scalefilter", QCommandLineOption filter(QStringList() << "x" << "scalefilter",
QCoreApplication::translate("main", "X11 scaling filter to use (see X11's render.h). 0 nearest (default), 1 bilinear, 2 fast, 3 good, 4 best"), QCoreApplication::translate("main", "X11 scaling filter to use (see X11's render.h). 0 nearest (default), 1 bilinear, 2 fast, 3 good, 4 best")
QCoreApplication::translate("main", "X11 scaling filter")
); );
parser.addOption(filter); parser.addOption(filter);
parser.process(*qapp); parser.process(*qapp);