aboutsummaryrefslogtreecommitdiffstats
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
parent9e61c68f5a548d7d8dd35ba27c087779e29b8899 (diff)
downloadplptools-b41927c8dbfee8882f9d6e87ce26467dfee5321b.tar.gz
plptools-b41927c8dbfee8882f9d6e87ce26467dfee5321b.tar.bz2
plptools-b41927c8dbfee8882f9d6e87ce26467dfee5321b.zip
Handle -V
-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)
109' href='#n109'>109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202