# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1663034818 -7200
#      Tue Sep 13 04:06:58 2022 +0200
# Node ID 8d322a3718d65f2743c3007a9f1afbd45677d0c0
# Parent  0c73d5ff5988611613fae21d9bee1ba3864bb53d
env-desc: add support to set integer value

More variability, yeah!

diff --git a/bin/env-desc b/bin/env-desc
--- a/bin/env-desc
+++ b/bin/env-desc
@@ -98,6 +98,11 @@
                 path = sys.argv[2]
                 key = sys.argv[3]
                 sys.argv[4] = bool(sys.argv[4])
+            elif path == '--int':
+                sys.argv.pop(2)
+                path = sys.argv[2]
+                key = sys.argv[3]
+                sys.argv[4] = int(sys.argv[4])
             if len(sys.argv) < 5:
                 err("missing value")
                 sys.exit(2)