showHelp(): improved message
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 27 Aug 2004 14:14:45 +0000 (14:14 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 27 Aug 2004 14:14:45 +0000 (14:14 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1684 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/secure-mount.c

index f752283..5fc9d0d 100644 (file)
@@ -160,6 +160,27 @@ showHelp(int fd, char const *cmd, int res)
            "the current root-dir while destinations are expected in the chroot environment.\n\n"
            "For non-trivial mount-operations it uses the external 'mount' program which\n"
            "can be overridden by the $MOUNT environment variable.\n\n"
+           "Options:\n"
+            "  --bind|move|rbind        ...  set the correspond flags; with this options\n"
+            "                                the mount will be executed internally without\n"
+            "                                calling an external mount program.\n"
+            "  -t <type>                ...  assume the given filesystem type\n"
+            "  -o <options>             ...  set additional options; see mount(2) for details\n"
+            "  -n                       ...  do not update the mtab-file\n"
+            "  --mtab <filename>        ...  use <filename> as an alternative mtab file\n"
+            "                                [default: /etc/mtab]\n"
+            "  --chroot                 ...  chroot into the current directory before\n"
+            "                                mounting the filesystem\n"
+            "  --fstab <filename>       ...  use <filename> as an alternative fstab file;\n"
+            "                                this option has an effect only with the '-a'\n"
+            "                                option [default: /etc/fstab]\n"
+            "  -a                       ...  mount everything listed in the fstab-file\n\n"
+            "  <src>                    ...  the source-filesystem; this path is absolute\n"
+            "                                to the current root-filesystem. Only valid\n"
+            "                                without the '-a' option.\n"
+            "  <dst>                    ...  the destination mount-point; when used with\n"
+            "                                '--chroot', this path is relative to the current\n"
+            "                                directory. Only valid without the '-a' option\n\n"
            "Please report bugs to " PACKAGE_BUGREPORT "\n");
 
   exit(res);