aboutsummaryrefslogtreecommitdiffstats
path: root/sisinstall
diff options
context:
space:
mode:
authorDaniel Brahneborg <basic@chello.se>2002-04-03 19:11:41 +0000
committerDaniel Brahneborg <basic@chello.se>2002-04-03 19:11:41 +0000
commitb41927c8dbfee8882f9d6e87ce26467dfee5321b (patch)
treece8c130714f3b7b4f033aa8d9f55f68cc2515885 /sisinstall
parent9e61c68f5a548d7d8dd35ba27c087779e29b8899 (diff)
downloadplptools-b41927c8dbfee8882f9d6e87ce26467dfee5321b.tar.gz
plptools-b41927c8dbfee8882f9d6e87ce26467dfee5321b.tar.bz2
plptools-b41927c8dbfee8882f9d6e87ce26467dfee5321b.zip
Handle -V
Diffstat (limited to 'sisinstall')
-rw-r--r--sisinstall/sismain.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/sisinstall/sismain.cpp b/sisinstall/sismain.cpp
index 6fbe7f8..0cfb370 100644
--- a/sisinstall/sismain.cpp
+++ b/sisinstall/sismain.cpp
@@ -57,7 +57,7 @@ void main(int argc, char* argv[])
while (1)
{
- option = getopt_long(argc, argv, "hnl:", opts, NULL);
+ option = getopt_long(argc, argv, "hnl:V", opts, NULL);
if (option == -1)
break;
switch (option)
@@ -72,6 +72,9 @@ void main(int argc, char* argv[])
case 'n':
dryrun = true;
break;
+ case 'V':
+ printf(_("sisinstall version 0.1\n"));
+ exit(0);
}
}
if (optind < argc)