From b41927c8dbfee8882f9d6e87ce26467dfee5321b Mon Sep 17 00:00:00 2001 From: Daniel Brahneborg Date: Wed, 3 Apr 2002 19:11:41 +0000 Subject: Handle -V --- sisinstall/sismain.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sisinstall') 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) -- cgit v1.2.3