Change formatting of swaylock usage in the code

This commit is contained in:
Brian Ashworth 2018-07-10 22:08:42 -04:00
parent 936a920a8e
commit 22d152f1fe

View file

@ -487,63 +487,75 @@ int main(int argc, char **argv) {
const char usage[] =
"Usage: swaylock [options...]\n"
"\n"
" -c, --color <color> Turn the screen into the given color"
" instead of white.\n"
" -e, --ignore-empty-password When an empty password is provided"
" by the user, do not validate it.\n"
" -f, --daemonize Detach from the controlling terminal"
" after locking.\n"
" -h, --help Show help message and quit.\n"
" -i, --image [<output>:]<path> Display the given image.\n"
" -s, --scaling <mode> Scaling mode: stretch, fill, fit,"
" center, tile.\n"
" -t, --tiling Same as --scaling=tile.\n"
" -u, --no-unlock-indicator Disable the unlock indicator.\n"
" -v, --version Show the version number and quit.\n"
" --bs-hl-color <color> Sets the color of backspace"
" highlight segments.\n"
" --font <font> Sets the font of the text.\n"
" --indicator-radius <radius> Sets the indicator radius.\n"
" --indicator-thickness <thick> Sets the indicator thickness.\n"
" --inside-color <color> Sets the color of the inside of the"
" indicator.\n"
" --inside-clear-color <color> Sets the color of the inside of the"
" indicator when cleared.\n"
" --inside-ver-color <color> Sets the color of the inside of the"
" indicator when verifying.\n"
" --inside-wrong-color <color> Sets the color of the inside of the"
" indicator when invalid.\n"
" --key-hl-color <color> Sets the color of the key press"
" highlight segments.\n"
" --line-color <color> Sets the color of the line between"
" the inside and ring.\n"
" --line-clear-color <color> Sets the color of the line between"
" the inside and ring when cleared.\n"
" --line-ver-color <color> Sets the color of the line between"
" the inside and ring when verifying.\n"
" --line-wrong-color <color> Sets the color of the line between"
" the inside and ring when invalid.\n"
" -n, --line-uses-inside Use the inside color for the line"
" between the inside and ring.\n"
" -r, --line-uses-ring Use the ring color for the line"
" between the inside and ring.\n"
" --ring-color <color> Sets the color of the ring of the"
" indicator.\n"
" --ring-clear-color <color> Sets the color of the ring of the"
" indicator when cleared.\n"
" --ring-ver-color <color> Sets the color of the ring of the"
" indicator when verifying.\n"
" --ring-wrong-color <color> Sets the color of the ring of the"
" indicator when invalid.\n"
" --separator-color <color> Sets the color of the lines that"
" separate highlight segments.\n"
" --text-color <color> Sets the color of the text.\n"
" --text-clear-color <color> Sets the color of the text when"
" cleared.\n"
" --text-ver-color <color> Sets the color of the text when"
" verifying.\n"
" --text-wrong-color <color> Sets the color of the text when"
" invalid.\n"
" -c, --color <color> "
"Turn the screen into the given color instead of white.\n"
" -e, --ignore-empty-password "
"When an empty password is provided, do not validate it.\n"
" -f, --daemonize "
"Detach from the controlling terminal after locking.\n"
" -h, --help "
"Show help message and quit.\n"
" -i, --image [<output>:]<path> "
"Display the given image.\n"
" -s, --scaling <mode> "
"Scaling mode: stretch, fill, fit, center, tile.\n"
" -t, --tiling "
"Same as --scaling=tile.\n"
" -u, --no-unlock-indicator "
"Disable the unlock indicator.\n"
" -v, --version "
"Show the version number and quit.\n"
" --bs-hl-color <color> "
"Sets the color of backspace highlight segments.\n"
" --font <font> "
"Sets the font of the text.\n"
" --indicator-radius <radius> "
"Sets the indicator radius.\n"
" --indicator-thickness <thick> "
"Sets the indicator thickness.\n"
" --inside-color <color> "
"Sets the color of the inside of the indicator.\n"
" --inside-clear-color <color> "
"Sets the color of the inside of the indicator when cleared.\n"
" --inside-ver-color <color> "
"Sets the color of the inside of the indicator when verifying.\n"
" --inside-wrong-color <color> "
"Sets the color of the inside of the indicator when invalid.\n"
" --key-hl-color <color> "
"Sets the color of the key press highlight segments.\n"
" --line-color <color> "
"Sets the color of the line between the inside and ring.\n"
" --line-clear-color <color> "
"Sets the color of the line between the inside and ring when "
"cleared.\n"
" --line-ver-color <color> "
"Sets the color of the line between the inside and ring when "
"verifying.\n"
" --line-wrong-color <color> "
"Sets the color of the line between the inside and ring when "
"invalid.\n"
" -n, --line-uses-inside "
"Use the inside color for the line between the inside and ring.\n"
" -r, --line-uses-ring "
"Use the ring color for the line between the inside and ring.\n"
" --ring-color <color> "
"Sets the color of the ring of the indicator.\n"
" --ring-clear-color <color> "
"Sets the color of the ring of the indicator when cleared.\n"
" --ring-ver-color <color> "
"Sets the color of the ring of the indicator when verifying.\n"
" --ring-wrong-color <color> "
"Sets the color of the ring of the indicator when invalid.\n"
" --separator-color <color> "
"Sets the color of the lines that separate highlight segments.\n"
" --text-color <color> "
"Sets the color of the text.\n"
" --text-clear-color <color> "
"Sets the color of the text when cleared.\n"
" --text-ver-color <color> "
"Sets the color of the text when verifying.\n"
" --text-wrong-color <color> "
"Sets the color of the text when invalid.\n"
"\n"
"All <color> options are of the form <rrggbb[aa]>.\n";