Updated help string

This commit is contained in:
Andrew S. Rightenburg 2023-03-09 10:42:46 -05:00
parent 13f567811e
commit cf3d72348a

View file

@ -20,7 +20,7 @@ int main(int argc, char* argv[]) {
string program_author = "rail5";
string helpstring = program_name + "\nCopyright (C) 2023 rail5\nThis is free software (GNU GPL 3), and you are welcome to redistribute it under certain conditions.\n\nUsage: " + program_name + " -i filename -a \"{INSTRUCTION}\"\n\nOptions:\n -i\n --input\n Specify input file to edit\n\n -a\n --add-instruction\n Instruct the program on how to edit your file\n Example instructions:\n REPLACE 5 hello world\n (Replaces text, starting from byte #5, with \"hello world\")\n INSERT 7 salut a tous\n (Inserts \"salut a tous\" at byte #7, shifting the rest of the file without replacing it)\n REMOVE 9 10\n (Removes byte #9 and #10 from the file)\n\n -s\n --add-instruction-set\n Provide a set of multiple instructions for editing the file\n Each instruction in the set should be on its own line, as in the following example:\n REPLACE 20 hello world\n INSERT 50 hello again\n REMOVE 70 75\n\n -c\n --special-chars\n Interpret escaped characters such as \\n, \\t and \\\\\n\n -f\n --follow-logic\n Adjust the positions given by the instruction set as we go along\n For example, in this set:\n REMOVE 5 5\n REPLACE 10 hello world\n After \"Remove 5 5\", which removes the 5th byte from the file, \"Replace 10 hello world\" will be adjusted to \"Replace 9 hello world\", since removing an earlier byte caused the text which was originally at position #10 to move to position #9\n\n -b\n --block-size\n Specify the amount of data from the file we're willing to load into memory at any given time\n (Specified in bytes)\n (Default 1024)\n\n -h\n --help\n Display this message\n\nExample:\n " + program_name + " --input ./file.txt --add-instruction \"REPLACE 20 hello \\n world\" --add-instruction \"REMOVE 10 12\" --block-size 10240 --special-chars\n";
string helpstring = program_name + "\nCopyright (C) 2023 rail5\nThis is free software (GNU GPL 3), and you are welcome to redistribute it under certain conditions.\n\nUsage: " + program_name + " -i filename -a \"{INSTRUCTION}\"\n\nOptions:\n -i\n --input\n Specify input file to edit\n\n -a\n --add-instruction\n Instruct the program on how to edit your file\n Example instructions:\n REPLACE 5 hello world\n (Replaces text, starting from byte #5, with \"hello world\")\n INSERT 7 salut a tous\n (Inserts \"salut a tous\" at byte #7, shifting the rest of the file without replacing it)\n REMOVE 9 15\n (Removes bytes #9 to #15 from the file)\n\n -s\n --add-instruction-set\n Provide a set of multiple instructions for editing the file\n Each instruction in the set should be on its own line, as in the following example:\n REPLACE 20 hello world\n INSERT 50 hello again\n REMOVE 70 75\n\n -c\n --special-chars\n Interpret escaped characters such as \\n, \\t and \\\\\n\n -f\n --follow-logic\n Adjust the positions given by the instruction set as we go along\n For example, in this set:\n REMOVE 5 5\n REPLACE 10 hello world\n After \"Remove 5 5\", which removes the 5th byte from the file, \"Replace 10 hello world\" will be adjusted to \"Replace 9 hello world\", since removing an earlier byte caused the text which was originally at position #10 to move to position #9\n\n -b\n --block-size\n Specify the amount of data from the file we're willing to load into memory at any given time\n (Specified in bytes)\n (Default 1024)\n\n -h\n --help\n Display this message\n\nExample:\n " + program_name + " --input ./file.txt --add-instruction \"REPLACE 20 hello \\n world\" --add-instruction \"REMOVE 10 12\" --block-size 10240 --special-chars\n";
/*