From 99acbfff7aab23b386507419759834cb2db2bd30 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Wed, 9 Feb 2005 13:45:11 +0000 Subject: fix --- sshfs.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sshfs.c b/sshfs.c index 01c1dc9..59c95cb 100644 --- a/sshfs.c +++ b/sshfs.c @@ -6,6 +6,8 @@ See the file COPYING. */ +#include "config.h" + #include #include #include @@ -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; -- cgit v1.2.3