Permalink
Browse files

correct documentation on -s option

somewhere mentioned as --size, but the option is really just -s
fixes #100
  • Loading branch information...
1 parent f980573 commit 325633d2fbdbca5374ee731f869773262dd7b030 @jaromil jaromil committed Jan 12, 2014
Showing with 6 additions and 6 deletions.
  1. +3 −3 doc/tomb.1
  2. +3 −3 tomb
View
@@ -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
View
6 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"

0 comments on commit 325633d

Please sign in to comment.