diff options
Diffstat (limited to 'tools/wixl/util.vala')
-rw-r--r-- | tools/wixl/util.vala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/wixl/util.vala b/tools/wixl/util.vala index 1b201ec..a3033cb 100644 --- a/tools/wixl/util.vala +++ b/tools/wixl/util.vala @@ -104,6 +104,10 @@ namespace Wixl { return prefix + hash[0:32].up (); } + public string yesno (bool yes) { + return yes ? "yes" : "no"; + } + public bool parse_yesno (string? str, bool default = false) { if (str == null) return default; |