gitit.hs option improvements #334

Merged
merged 2 commits into from Dec 31, 2012

2 participants

@bmillwood

It bothered me that I got an error about the gitit configuration file even when I just wanted to run it with --help.

These commits help to guide a user towards prefix-independence:

  • --help, --version, --print-default-config now all avoid reading the configuration file before running (admittedly a bit pointless in the third case),
  • --help now includes a message indicating where gitit will look for default.conf, and how to change that path.
bmillwood added some commits Nov 30, 2012
@bmillwood bmillwood Don't read config for --help or --version
Also involves a refactor of options into those that make the program
quit immediately, and those that just alter the configuration.
c52180f
@bmillwood bmillwood Include the default.conf location in --help fbd5af1
@jgm jgm merged commit bee3af6 into jgm:master Dec 31, 2012
@bmillwood bmillwood deleted the bmillwood:options branch Dec 31, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment