Just like in many GNU tools, it is now possible to pass an optional boolean to some of the flags of gitinspector in the form; --flag[=BOOL] This gives us the ability to override options set via git-config. For example; say we did the following: git-config --global inspector.timeline true We could then override this setting when running gitinspector by supplying: ./gitinspector.py --timeline=false Implementing this was not a trivial task, as no command-line parser in Python supports this by default (getopt, optparse, argparse). In order to properly handle optional boolean arguments; some clever patching had to be done to the command-line in combination with a callback function that can handle boolean strings. To maintain compatibility with Python 2.6, this was implemented using optparse (instead of argparse). |
||
---|---|---|
gitinspector | ||
tests | ||
.gitignore | ||
.pylintrc | ||
DESCRIPTION.txt | ||
LICENSE.txt | ||
MANIFEST.in | ||
README.txt | ||
setup.py | ||
stdeb.cfg |
README.txt
Copyright © 2012-2013 Ejwa Software. All rights reserved. This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions; see the accompanying LICENSE.txt file for further details. For questions regarding gitinspector you can contact the current maintainer in charge at gitinspector@ejwa.se.