A collection of scripts

prefon: update usage statement

yemou 45ee7d63 f0aca02a

Changed files
+22 -22
scritps
+22 -22
scritps/prefon
··· 2 2 # Script to preview fonts 3 3 4 4 usage() { 5 - printf '%b\n' "${0##*/} [-F FILE | -S | -t STRING] [OPTIONS]" \ 6 - "actions:" \ 7 - "\t-F FILE - read from file" \ 8 - "\t-S - read from stdin" \ 9 - "\t-t STRING - use a string" \ 10 - "\noptions:" \ 11 - "\t-b SIZE - border size" \ 12 - "\t-c COLORS - set the color of the text and background" \ 13 - "\t-f FONT - which font to preview" \ 14 - "\t-h - display this message" \ 15 - "\t-i - do not generate an inverse image" \ 16 - "\t-o FILE - output file for the generated image" \ 17 - "\t-s SIZE - size of the font" \ 18 - "\ndefault values:" \ 19 - "These values can be set before execution to change default values" \ 20 - "\tPREFON_ACTION=text (file, stdin, or text)" \ 21 - "\tPREFON_BORDER_SIZE=16" \ 22 - "\tPREFON_COLORS=\"000000,ffffff\"" \ 23 - "\tPREFON_FONT=\"monospace\"" \ 24 - "\tPREFON_OUTPUT=\"/tmp/prefon.png\"" \ 25 - "\tPREFON_SIZE=16" \ 26 - "\tPREFON_TEXT=\"The quick brown fox jumps\\\n over the lazy dog\"" \ 5 + printf '%b\n' "${0##*/} [-F FILE | -S | -t STRING] [OPTIONS]" \ 6 + "actions:" \ 7 + "\t-F FILE - read from file" \ 8 + "\t-S - read from stdin" \ 9 + "\t-t STRING - use a string" \ 10 + "\noptions:" \ 11 + "\t-b SIZE - border size" \ 12 + "\t-c COLORS - set the color of the text and background" \ 13 + "\t-f FONT - which font to preview" \ 14 + "\t-h - display this message" \ 15 + "\t-i - generate the inverse image (horizontal, vertical, none)" \ 16 + "\t-o FILE - output file for the generated image" \ 17 + "\t-s SIZE - size of the font" \ 18 + "\ndefault values:" \ 19 + "These values can be set before execution to change default values" \ 20 + "\tPREFON_ACTION=text (file, stdin, or text)" \ 21 + "\tPREFON_BORDER_SIZE=16" \ 22 + "\tPREFON_COLORS=\"000000,ffffff\"" \ 23 + "\tPREFON_FONT=\"monospace\"" \ 24 + "\tPREFON_OUTPUT=\"/tmp/prefon.png\"" \ 25 + "\tPREFON_SIZE=16" \ 26 + "\tPREFON_TEXT=\"The quick brown fox jumps\\\n over the lazy dog\"" \ 27 27 "\tPREFON_INVERSE=vertical (horizontal, vertical, none)" 28 28 } 29 29