Orthograph icon indicating copy to clipboard operation
Orthograph copied to clipboard

--help without --configfile

Open alephreish opened this issue 8 years ago • 0 comments

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

alephreish avatar Jul 01 '16 10:07 alephreish