Change formatting of swaylock usage in the code

This commit is contained in:
Brian Ashworth 2018-07-10 22:08:42 -04:00
parent 77cf57ae14
commit cd9295c9d9

120
main.c
View File

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