|
|
|
|
@ -33,8 +33,18 @@ cleanup_on_trap() {
|
|
|
|
|
trap cleanup_on_trap INT TERM
|
|
|
|
|
|
|
|
|
|
help() {
|
|
|
|
|
echo << eof
|
|
|
|
|
HELP TEXT
|
|
|
|
|
cat << eof
|
|
|
|
|
Help for $0
|
|
|
|
|
|
|
|
|
|
Options
|
|
|
|
|
-h|--help #This help doc
|
|
|
|
|
-f|--file [path/to/file.tar.gz.age] # provides the tar'd, compressed, and encrypted file of interest.
|
|
|
|
|
--file=[path/to/file.tar.gz.age] # Alternate version of -h [file]
|
|
|
|
|
-n|--new # Create a new archive for encryption.
|
|
|
|
|
-o|--output [path/to/output/file.tar.gz.age] # Where to write the archive when you save it.
|
|
|
|
|
--output=[path/to/output/file.tar.gz.age] # Alternate version of -o [file]
|
|
|
|
|
-i|--identies [path/to/age/key] # Which identity to use to decrypt the file.
|
|
|
|
|
--identities=[path/to/age/key] # alternate form of -i [file]
|
|
|
|
|
eof
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|