summaryrefslogtreecommitdiff
path: root/src/poezio.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-02-21 23:16:52 +0100
committermathieui <mathieui@mathieui.net>2015-02-21 23:16:52 +0100
commit1209bd94b60cb85c756d937ad9cada69f2428397 (patch)
tree6e215b9f53aa8d37e141844f72513daf340d9b22 /src/poezio.py
parent96e97962bc64fe8a53c02f7f0bd787cee5c3fc5f (diff)
downloadpoezio-1209bd94b60cb85c756d937ad9cada69f2428397.tar.gz
poezio-1209bd94b60cb85c756d937ad9cada69f2428397.tar.bz2
poezio-1209bd94b60cb85c756d937ad9cada69f2428397.tar.xz
poezio-1209bd94b60cb85c756d937ad9cada69f2428397.zip
Add a -c/--check-config option to check the config file
It displays the missing options and the ones which are changed from the default values.
Diffstat (limited to 'src/poezio.py')
-rw-r--r--src/poezio.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/poezio.py b/src/poezio.py
index 1a5a257e..7a83f510 100644
--- a/src/poezio.py
+++ b/src/poezio.py
@@ -59,6 +59,10 @@ def main():
from config import options
+ if options.check_config:
+ config.check_config()
+ sys.exit(0)
+
import theming
theming.update_themes_dir()