commit 325633d2fbdbca5374ee731f869773262dd7b030
parent f9805731f1776f1f7750b56e034e2b2cb751bb27
Author: Jaromil <jaromil@dyne.org>
Date: Sun, 12 Jan 2014 23:39:59 +0100
correct documentation on -s option
somewhere mentioned as --size, but the option is really just -s
fixes #100
Diffstat:
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/doc/tomb.1 b/doc/tomb.1
@@ -30,8 +30,8 @@ harddisk and its key file on a USB stick.
.IP "dig"
Generates a file that can be used as a tomb and will occupy as much
space as its desired initial size, the unlocked \fI.tomb\fR file can
-then be locked using a \fIkey\fR. It takes a mandatory option which is
-the \fI--size\fR in megabytes (MiB). Tombs are digged using
+then be locked using a \fIkey\fR. It takes a mandatory \fI-s\fR option which is
+the size in megabytes (MiB). Tombs are digged using
low-quality random data (/dev/urandom).
.B
@@ -127,7 +127,7 @@ key and the second and last argument the tomb file.
.B
.IP "resize"
Increase the size of a tomb file to the amount specified by the
-\fI--size\fR option in megabytes (MiB). Full access to the tomb using
+\fI-s\fR option, which is the new size in megabytes (MiB). Full access to the tomb using
a key (\fI-k\fR) and its password is requires. Tombs can only grow and
can never be made smaller. This command makes use of the cryptsetup
resize feature and the resize2fs command: its much more practical than
diff --git a/tomb b/tomb
@@ -320,7 +320,7 @@ Syntax: tomb [options] command [arguments]
Commands:
// Creation:
- dig create a new empty TOMB file of --size in MB
+ dig create a new empty TOMB file of size -s in MB
forge create a new KEY file and set its password
lock installs a lock on a TOMB to use it with KEY
@@ -334,7 +334,7 @@ Commands:
EOF
if [ "$RESIZER" = 1 ]; then
cat <<EOF
- resize resize a TOMB to a new --size (can only grow)
+ resize resize a TOMB to a new size -s (can only grow)
EOF
fi
cat <<EOF
@@ -1117,7 +1117,7 @@ dig_tomb() {
# require the specification of the size of the tomb (-s) in MB
tombsize="`option_value -s`"
- [ $tombsize ] || die "Size argument missing, use --size"
+ [ $tombsize ] || die "Size argument missing, use -s"
[[ $tombsize != <-> ]] && die "Size argument is not an integer"