]> git.tuebingen.mpg.de Git - adu.git/commitdiff
manual: Add short option example.
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 2 Jun 2016 13:11:37 +0000 (15:11 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Fri, 24 Jun 2016 10:55:32 +0000 (12:55 +0200)
While long options are nice for shell scripts, short options are easier
to type at the shell prompt, and look more concise in a man page.

This commit adds an example command which is equivalent to the previous
one but uses short options and combines two options to explain the
equivalence. Subsequent examples will only refer to short options.

adu.1.inc

index fe48d4e5297af0a0106ce15f5d898de7a1d84c6d..78d7e22fd78b591cce331b48a27a3828acc6aa72 100644 (file)
--- a/adu.1.inc
+++ b/adu.1.inc
@@ -19,6 +19,10 @@ The command below prints the five largest directories of the users root and
 mysql:
 .IP
        $ adu --select --database-dir /root/adu-var --select-options '--select-mode user_list --user root --user mysql --limit 5'
+.PP
+The same, using short options:
+.IP
+       $ adu -Sd /root/adu-var -s '-m user_list -u root -u mysql -l 5'
 
 [SEE ALSO]
 .BR du (1)