diff options
author | Thomas White <taw@physics.org> | 2010-07-01 18:44:25 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:26:52 +0100 |
commit | 588d243654d81e13aaee0e04ae4d9cce66acea38 (patch) | |
tree | e5293705823951632b6a1c3fb20eba2ada416ee4 /src | |
parent | bc5a0359e04a4a4f2070ef183aededc20dc6b9da (diff) |
compare_hkl: Don't require silly -a and -b options
Diffstat (limited to 'src')
-rw-r--r-- | src/compare_hkl.c | 18 |
1 files changed, 9 insertions, 9 deletions
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 <file1.hkl> -b <file2.hkl>\n\n", s); + printf("Syntax: %s [options] <file1.hkl> <file2.hkl>\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); |