From 9ddbe81540a0b731da4f1f68c3d5dcf14aff5097 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 30 Sep 2010 14:10:22 +0200 Subject: pattern_sim: Fix options --- src/pattern_sim.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pattern_sim.c') diff --git a/src/pattern_sim.c b/src/pattern_sim.c index 01383161..d39dea7b 100644 --- a/src/pattern_sim.c +++ b/src/pattern_sim.c @@ -47,7 +47,7 @@ static void show_help(const char *s) " intensities file)\n" " --simulation-details Show technical details of the simulation.\n" " --gpu Use the GPU to speed up the calculation.\n" -" -g. --geometry= Get detector geometry from file.\n" +" -g, --geometry= Get detector geometry from file.\n" "\n" " --near-bragg Output h,k,l,I near Bragg conditions.\n" " -n, --number= Generate N images. Default 1.\n" @@ -64,7 +64,7 @@ static void show_help(const char *s) " this invocation as the given filename.\n" " -i, --intensities= Specify file containing reflection intensities\n" " (and phases) to use.\n" -" -g, --gradients= Use for the calculation of shape\n" +" -t, --gradients= Use for the calculation of shape\n" " transform intensities. Choose from:\n" " mosaic : Take the intensity of the nearest\n" " Bragg position. This is the\n" @@ -217,7 +217,7 @@ int main(int argc, char *argv[]) }; /* Short options */ - while ((c = getopt_long(argc, argv, "hrn:i:t:p:o:", + while ((c = getopt_long(argc, argv, "hrn:i:t:p:o:g:", longopts, NULL)) != -1) { switch (c) { -- cgit v1.2.3