From 588d243654d81e13aaee0e04ae4d9cce66acea38 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 1 Jul 2010 18:44:25 +0200 Subject: compare_hkl: Don't require silly -a and -b options --- src/compare_hkl.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/compare_hkl.c') diff --git a/src/compare_hkl.c b/src/compare_hkl.c index 9f39ee09..b80546c8 100644 --- a/src/compare_hkl.c +++ b/src/compare_hkl.c @@ -29,7 +29,7 @@ static void show_help(const char *s) { - printf("Syntax: %s [options] -a -b \n\n", s); + printf("Syntax: %s [options] \n\n", s); printf( "Compare intensity lists.\n" "\n" @@ -75,14 +75,6 @@ int main(int argc, char *argv[]) outfile = strdup(optarg); break; - case 'a' : - afile = strdup(optarg); - break; - - case 'b' : - bfile = strdup(optarg); - break; - case 0 : break; @@ -92,6 +84,14 @@ int main(int argc, char *argv[]) } + if ( argc != (optind+2) ) { + ERROR("Please provide exactly two HKL files to compare.\n"); + return 1; + } + + afile = strdup(argv[optind++]); + bfile = strdup(argv[optind]); + cell = load_cell_from_pdb("molecule.pdb"); c1 = new_list_count(); ref1 = read_reflections(afile, c1, NULL); -- cgit v1.2.3