aboutsummaryrefslogtreecommitdiff
path: root/sshfs.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-02-09 13:45:11 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2005-02-09 13:45:11 +0000
commit99acbfff7aab23b386507419759834cb2db2bd30 (patch)
tree047fd695d7f35bbf7493ff1c78c727f290eeb4e7 /sshfs.c
parent2705253d2c78e19e44e1b7e8c6dcc220de3c82d1 (diff)
downloadsshfs-99acbfff7aab23b386507419759834cb2db2bd30.tar
sshfs-99acbfff7aab23b386507419759834cb2db2bd30.tar.gz
sshfs-99acbfff7aab23b386507419759834cb2db2bd30.tar.bz2
sshfs-99acbfff7aab23b386507419759834cb2db2bd30.zip
fix
Diffstat (limited to 'sshfs.c')
-rw-r--r--sshfs.c8
1 files changed, 8 insertions, 0 deletions
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 <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;