mptrsen / Orthograph

Orthology prediction using a graph-based, reciprocal approach with profile hidden Markov models
GNU General Public License v3.0
32 stars 5 forks source link

--help without --configfile #23

Open alephreish opened 8 years ago

alephreish commented 8 years ago

There is a minor issue with the --help/-h argument: one would not be able to get the help without having config file in the same location as the executable or providing it as --configfile/-c:

$ orthograph-analyzer -h
Fatal: Config file '/usr/local/bin/orthograph.conf' not found!

$ orthograph-analyzer -h -c some_config_file.conf
Parsing config file 'some_config_file.conf'.
Usage: Orthograph [OPTIONS] INPUTFILE
etc

$ orthograph-analyzer -h -c <(echo)
Parsing config file '/dev/fd/63'.
Usage: Orthograph [OPTIONS] INPUTFILE
etc