diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-02-09 13:45:11 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2005-02-09 13:45:11 +0000 |
commit | 99acbfff7aab23b386507419759834cb2db2bd30 (patch) | |
tree | 047fd695d7f35bbf7493ff1c78c727f290eeb4e7 /sshfs.c | |
parent | 2705253d2c78e19e44e1b7e8c6dcc220de3c82d1 (diff) | |
download | sshfs-99acbfff7aab23b386507419759834cb2db2bd30.tar sshfs-99acbfff7aab23b386507419759834cb2db2bd30.tar.gz sshfs-99acbfff7aab23b386507419759834cb2db2bd30.tar.bz2 sshfs-99acbfff7aab23b386507419759834cb2db2bd30.zip |
fix
Diffstat (limited to 'sshfs.c')
-rw-r--r-- | sshfs.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -6,6 +6,8 @@ See the file COPYING. */ +#include "config.h" + #include <fuse.h> #include <stdio.h> #include <stdlib.h> @@ -1164,6 +1166,7 @@ static void usage(const char *progname) "usage: %s [user@]host:[dir]] mountpoint [options]\n" "\n" "SSHFS Options:\n" + " -V show version information\n" " -p PORT equivalent to '-o port=PORT'\n" " -C equivalent to '-o compression=yes'\n" " -o ssh_command=CMD execute CMD instead of 'ssh'\n" @@ -1188,6 +1191,11 @@ int main(int argc, char *argv[]) char *arg = argv[argctr]; if (arg[0] == '-') { switch (arg[1]) { + case 'V': + fprintf(stderr, "SSHFS version %s\n", PACKAGE_VERSION); + exit(0); + break; + case 'h': usage(argv[0]); break; |