From: Alex Howarth <alex.howarth@gmail.com>
Date: Wed, 30 May 2012 15:39:10 +0000 (+0100)
Subject: Provide documentation for config_any_args()
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b74ab4b0f46e90b1c963011ee7367678f3c9aae7;p=gitmo%2FMooseX-SimpleConfig.git

Provide documentation for config_any_args()
---

diff --git a/lib/MooseX/SimpleConfig.pm b/lib/MooseX/SimpleConfig.pm
index 7b66cd0..1e3975e 100644
--- a/lib/MooseX/SimpleConfig.pm
+++ b/lib/MooseX/SimpleConfig.pm
@@ -112,6 +112,15 @@ turn support any of a variety of different config formats, detected
 by the file extension.  See L<Config::Any> for more details about
 supported formats.
 
+To pass additional arguments to L<Config::Any> you must provide a
+C<config_any_args()> method, for example:
+
+  sub config_any_args {
+    return {
+      driver_args => { General => { '-InterPolateVars' => 1 } }
+    };
+  }
+
 Like all L<MooseX::ConfigFromFile> -derived configfile loaders, this
 module is automatically supported by the L<MooseX::Getopt> role as
 well, which allows specifying C<-configfile> on the commandline.