summaryrefslogtreecommitdiff
path: root/doc/PROGRAMMING
diff options
context:
space:
mode:
Diffstat (limited to 'doc/PROGRAMMING')
-rw-r--r--doc/PROGRAMMING9
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/PROGRAMMING b/doc/PROGRAMMING
index c5627b35..0cbe21a7 100644
--- a/doc/PROGRAMMING
+++ b/doc/PROGRAMMING
@@ -62,11 +62,14 @@ with the rest of debhelper if it does, so this is highly encouraged.
Use Dh_Lib like this:
-use Debian::Debhelper::Dh_Lib
+use Debian::Debhelper::Dh_Lib;
+our $VERSION = '1.0';
init();
-The init() function causes Dh_lib to parse the command line and do some other
-initialization tasks.
+The init() function causes Dh_lib to parse the command line and do
+some other initialization tasks. If present, $main::VERSION will be
+used to determine the version of the tool (e.g. embedded into
+autoscript snippets).
Argument processing:
-------------------