updated manpage and usage

This commit is contained in:
TLINDEN
2014-03-02 22:01:03 +01:00
parent b640fe6743
commit 3d2cdb8b89
5 changed files with 46 additions and 36 deletions

View File

@@ -8,7 +8,6 @@ extern "C" {
#include "pcp/config.h" #include "pcp/config.h"
#include "pcp/base85.h" #include "pcp/base85.h"
#include "pcp/buffer.h" #include "pcp/buffer.h"
#include "pcp/config.h"
#include "pcp/crypto.h" #include "pcp/crypto.h"
#include "pcp/defines.h" #include "pcp/defines.h"
#include "pcp/digital_crc32.h" #include "pcp/digital_crc32.h"

View File

@@ -19,8 +19,9 @@
case it determines itself what kind of case it determines itself what kind of
file it is. file it is.
-h --help Print this help message. -h --help Print this help message.
-v --version Print program version. --version Print program version.
-D --debug Enable debug output. -D --debug Enable debug output.
-v --verbose Enable verbose output.
Keymanagement Options: Keymanagement Options:
-k --keygen Generate a CURVE25519 secret key. If -k --keygen Generate a CURVE25519 secret key. If
@@ -37,6 +38,9 @@
vault. Only the key id's and some info vault. Only the key id's and some info
about the keys will be printed, not the about the keys will be printed, not the
actual keys. actual keys.
-L --listkeys-verbose Display a more verbose key listing
-l -v including signature fingerprint, key
fingerprint, checksum and the like.
-R --remove-key Remove a key from the vault. Requires -R --remove-key Remove a key from the vault. Requires
option -i <keyid>. option -i <keyid>.
-s --export-secret Export a secret key. If your vault only -s --export-secret Export a secret key. If your vault only
@@ -48,13 +52,13 @@
given, export the primary secret key. given, export the primary secret key.
Use -O to export to a file. Use -O to export to a file.
-p --export-public Export a public key. If no key id have -p --export-public Export a public key. If no key id have
been specified, the public part of your --export been specified, the public part of your
primary secret key will be exported. primary secret key will be exported.
Use -O to export to a file. Use -O to export to a file.
-S --import-secret Import a secret key. Use -I to import -S --import-secret Import a secret key. Use -I to import
from a file. from a file.
-P --import-public Import a public key. Use -I to import -P --import-public Import a public key. Use -I to import
from a file. --import from a file.
-y --export-yaml Export all keys stored in your vault -y --export-yaml Export all keys stored in your vault
as YAML formatted text. Use -O to put as YAML formatted text. Use -O to put
the export into a file. the export into a file.
@@ -110,8 +114,8 @@
Encoding Options: Encoding Options:
-z --z85-encode Encode (armor) something to Z85 encoding. -z --z85-encode Encode (armor) something to Z85 encoding.
If used with encryption or singing operation -a --armor If used with encryption or singing operation
encode its output. Otherwise encode a plain --textmode encode its output. Otherwise encode a plain
file. Use -I and -O respectively, otherwise it file. Use -I and -O respectively, otherwise it
uses stdin/stdout. uses stdin/stdout.
-Z --z85-decode Decode (dearmor) something from Z85 encoding. -Z --z85-decode Decode (dearmor) something from Z85 encoding.

View File

@@ -15,8 +15,9 @@ Pretty Curved Privacy - File encryption using eliptic curve cryptography.
General Options: General Options:
-h --help Print this help message. -h --help Print this help message.
-v --version Print program version. --version Print program version.
-D --debug Enable debug output. -D --debug Enable debug output.
-v --verbose Enable verbose output.
-V --vault <vaultfile> Specify an alternate vault file. -V --vault <vaultfile> Specify an alternate vault file.
-O --outfile <file> Output file. STDOUT if unspecified. -O --outfile <file> Output file. STDOUT if unspecified.
-I --infile <file> Input file. STDIN if unspecified. -I --infile <file> Input file. STDIN if unspecified.
@@ -74,8 +75,9 @@ Pretty Curved Privacy - File encryption using eliptic curve cryptography.
case it determines itself what kind of case it determines itself what kind of
file it is. file it is.
-h --help Print this help message. -h --help Print this help message.
-v --version Print program version. --version Print program version.
-D --debug Enable debug output. -D --debug Enable debug output.
-v --verbose Enable verbose output.
Keymanagement Options: Keymanagement Options:
-k --keygen Generate a CURVE25519 secret key. If -k --keygen Generate a CURVE25519 secret key. If
@@ -92,6 +94,9 @@ Pretty Curved Privacy - File encryption using eliptic curve cryptography.
vault. Only the key id's and some info vault. Only the key id's and some info
about the keys will be printed, not the about the keys will be printed, not the
actual keys. actual keys.
-L --listkeys-verbose Display a more verbose key listing
-l -v including signature fingerprint, key
fingerprint, checksum and the like.
-R --remove-key Remove a key from the vault. Requires -R --remove-key Remove a key from the vault. Requires
option -i <keyid>. option -i <keyid>.
-s --export-secret Export a secret key. If your vault only -s --export-secret Export a secret key. If your vault only
@@ -103,13 +108,13 @@ Pretty Curved Privacy - File encryption using eliptic curve cryptography.
given, export the primary secret key. given, export the primary secret key.
Use -O to export to a file. Use -O to export to a file.
-p --export-public Export a public key. If no key id have -p --export-public Export a public key. If no key id have
been specified, the public part of your --export been specified, the public part of your
primary secret key will be exported. primary secret key will be exported.
Use -O to export to a file. Use -O to export to a file.
-S --import-secret Import a secret key. Use -I to import -S --import-secret Import a secret key. Use -I to import
from a file. from a file.
-P --import-public Import a public key. Use -I to import -P --import-public Import a public key. Use -I to import
from a file. --import from a file.
-y --export-yaml Export all keys stored in your vault -y --export-yaml Export all keys stored in your vault
as YAML formatted text. Use -O to put as YAML formatted text. Use -O to put
the export into a file. the export into a file.
@@ -165,8 +170,8 @@ Pretty Curved Privacy - File encryption using eliptic curve cryptography.
Encoding Options: Encoding Options:
-z --z85-encode Encode (armor) something to Z85 encoding. -z --z85-encode Encode (armor) something to Z85 encoding.
If used with encryption or singing operation -a --armor If used with encryption or singing operation
encode its output. Otherwise encode a plain --textmode encode its output. Otherwise encode a plain
file. Use -I and -O respectively, otherwise it file. Use -I and -O respectively, otherwise it
uses stdin/stdout. uses stdin/stdout.
-Z --z85-decode Decode (dearmor) something from Z85 encoding. -Z --z85-decode Decode (dearmor) something from Z85 encoding.

View File

@@ -10,8 +10,9 @@
"\n" \ "\n" \
"General Options:\n" \ "General Options:\n" \
"-h --help Print this help message.\n" \ "-h --help Print this help message.\n" \
"-v --version Print program version.\n" \ " --version Print program version.\n" \
"-D --debug Enable debug output.\n" \ "-D --debug Enable debug output.\n" \
"-v --verbose Enable verbose output.\n" \
"-V --vault <vaultfile> Specify an alternate vault file.\n" \ "-V --vault <vaultfile> Specify an alternate vault file.\n" \
"-O --outfile <file> Output file. STDOUT if unspecified.\n" \ "-O --outfile <file> Output file. STDOUT if unspecified.\n" \
"-I --infile <file> Input file. STDIN if unspecified.\n" \ "-I --infile <file> Input file. STDIN if unspecified.\n" \

View File

@@ -8,8 +8,9 @@ Usage: pcp1 [ --help | --version ]
General Options: General Options:
-h --help Print this help message. -h --help Print this help message.
-v --version Print program version. --version Print program version.
-D --debug Enable debug output. -D --debug Enable debug output.
-v --verbose Enable verbose output.
-V --vault <vaultfile> Specify an alternate vault file. -V --vault <vaultfile> Specify an alternate vault file.
-O --outfile <file> Output file. STDOUT if unspecified. -O --outfile <file> Output file. STDOUT if unspecified.
-I --infile <file> Input file. STDIN if unspecified. -I --infile <file> Input file. STDIN if unspecified.