diff options
author | Daniel Brahneborg <basic@chello.se> | 2002-04-03 19:11:41 +0000 |
---|---|---|
committer | Daniel Brahneborg <basic@chello.se> | 2002-04-03 19:11:41 +0000 |
commit | b41927c8dbfee8882f9d6e87ce26467dfee5321b (patch) | |
tree | ce8c130714f3b7b4f033aa8d9f55f68cc2515885 /sisinstall | |
parent | 9e61c68f5a548d7d8dd35ba27c087779e29b8899 (diff) | |
download | plptools-b41927c8dbfee8882f9d6e87ce26467dfee5321b.tar.gz plptools-b41927c8dbfee8882f9d6e87ce26467dfee5321b.tar.bz2 plptools-b41927c8dbfee8882f9d6e87ce26467dfee5321b.zip |
Handle -V
Diffstat (limited to 'sisinstall')
-rw-r--r-- | sisinstall/sismain.cpp | 5 |
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) |