summaryrefslogtreecommitdiff
path: root/src/gipfel.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2007-08-11 22:27:55 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2007-08-11 22:27:55 +0200
commit50a00beb9598747a3c396088fd4ad311cb6cdf39 (patch)
tree47951a7898b148372e594c684ab6a745e8c944f4 /src/gipfel.cxx
parentbbb6b1845f65fe2d76ac0040e115f66be172961d (diff)
don't export duplicates
Diffstat (limited to 'src/gipfel.cxx')
-rw-r--r--src/gipfel.cxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gipfel.cxx b/src/gipfel.cxx
index 50f2404..43f2ed5 100644
--- a/src/gipfel.cxx
+++ b/src/gipfel.cxx
@@ -264,7 +264,7 @@ void usage() {
fprintf(stderr,
"usage: gipfel [-v <viewpoint>] [-d <file>]\n"
" [-s] [-j <file>] [-t <dir] [-w <width>] [-h <height>]\n"
- " [-e <file>] -p]\n"
+ " [-e <file>] [-E] [-p]\n"
" [<image(s)>]\n"
" -v <viewpoint> Set point from which the picture was taken.\n"
" This must be a string that unambiguously \n"
@@ -281,9 +281,8 @@ void usage() {
" -j <file> JPEG output file for Stitch mode.\n"
" -t <dir> Output directory for TIFF images in Stitch mode.\n"
" -p Export position of image to stdout.\n"
- " -e <file> Export positions of hills from <file> on image\n"
- " to stdout. Uses hills from default data file if\n"
- " <file> is omitted.\n"
+ " -e <file> Export positions of hills from <file> on image.\n"
+ " -E Export hills from default data file.\n"
" <image(s)> JPEG file(s) to use.\n");
}
@@ -428,7 +427,7 @@ int main(int argc, char** argv) {
char *export_file = NULL;
err = 0;
- while ((c = getopt(argc, argv, ":?d:v:sw:h:j:t:u:br:4e:V:p")) != EOF) {
+ while ((c = getopt(argc, argv, ":?d:v:sw:h:j:t:u:br:4e:V:pE")) != EOF) {
switch (c) {
case '?':
usage();
@@ -441,6 +440,9 @@ int main(int argc, char** argv) {
export_flag++;
export_file = optarg;
break;
+ case 'E':
+ export_flag++;
+ break;
case 'v':
view_point = optarg;
break;