]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Fix argument parsing for --boolean and --use-git-files 29/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 8 Oct 2016 19:15:33 +0000 (15:15 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 8 Oct 2016 19:15:33 +0000 (15:15 -0400)
commit2cac1fccb011666f931ce5eb42dfe3f684b69aae
tree638bb278a9e4b5221ba6582d2aa3deef5196d13c
parentbd2cfbc57774c4904deb8c455da4166b47289c7f
Fix argument parsing for --boolean and --use-git-files

bool('0') evaluates to True, so type=bool does not work as expected.
It is necessary to use a helper function which converts strings to
True/False as expected.

Also, fix parse_boolean().
mkosi