Describe the bug
The tool contact_distance.py, while having apparently correct usage of the description and fullhelp strings used to initialize loos options, is unable to print the fullhelp. Instead, it prints:
usage: contact_distance.py [-h] [--fullhelp] -m MODEL --selection SELECTION -t TRAJ
[TRAJ ...] [-k SKIP] [-s STRIDE] [--sigma SIGMA]
[--radius RADIUS] [--skip_backbone] [--include_h]
[--outfile OUTFILE]
contact_distance.py: error: the following arguments are required: -m/--model, --selection, -t/--traj
I think what's happening here is that it's doing its program options logic in a way that doesn't respect whether there's been a fullhelp requested, The parser realizes that a number of required args aren't present and throws the corresponding error, instead of printing full-help and exiting. I'm not exactly sure how to make sure that fullhelp gets printed first. For what it's worth, 'help' has a special status that avoids this issue, so the way argparse handles the -h flag might be the place to start on running this down.
To Reproduce
Steps to reproduce the behavior:
contact_distance.py --fullhelp in a functional loos environment with that tool in the path.
Expected behavior
I expected it to print the fullhelp that is saved as that variable name in the source code.
LOOS version and platform
f647665 linux conda install x86
Additional context
none
Describe the bug
The tool
contact_distance.py, while having apparently correct usage of the description and fullhelp strings used to initialize loos options, is unable to print the fullhelp. Instead, it prints:I think what's happening here is that it's doing its program options logic in a way that doesn't respect whether there's been a fullhelp requested, The parser realizes that a number of required args aren't present and throws the corresponding error, instead of printing full-help and exiting. I'm not exactly sure how to make sure that fullhelp gets printed first. For what it's worth, 'help' has a special status that avoids this issue, so the way argparse handles the
-hflag might be the place to start on running this down.To Reproduce
Steps to reproduce the behavior:
contact_distance.py --fullhelpin a functional loos environment with that tool in the path.Expected behavior
I expected it to print the fullhelp that is saved as that variable name in the source code.
LOOS version and platform
f647665 linux conda install x86
Additional context
none