diff --git a/README.md b/README.md new file mode 100644 index 0000000..6cd9673 --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ +# Learncrypt + +A small application to learn programming crypto. + +## About + +This project is about experimenting with and learning about encryption and also getting more experienced with the [D programming language](http://dlang.org/). + +## Option reference + + Usage: ./learncrypt [options] + + Common options: + -h --help This help information. + + Global options: + -a --armor use ascii-armored I/O. + + Actions: + -g --gen-key Generate a new 256 bit key. + -e --encrypt Encrypt a message. + -d --decrypt Decrypt a message. + + Action options: + -c --cipher The cipher to use (default: chacha20). + -k --key The file which contains the key (default: symkey.asc). diff --git a/source/app.d b/source/app.d index 5376a37..272cfc0 100644 --- a/source/app.d +++ b/source/app.d @@ -74,7 +74,7 @@ int main(string[] args) void printHelp(Option[] options) { - defaultGetoptPrinter("Usage: learncrypt [options]\n\nCommon options:", + defaultGetoptPrinter("Usage: ./learncrypt [options]\n\nCommon options:", options[$-1..$]); defaultGetoptPrinter("\nGlobal options:", options[$-2..$-1]);