Fix RT#57027
[gitmo/MooseX-SimpleConfig.git] / README
diff --git a/README b/README
index f13e2ed..20a0050 100644 (file)
--- a/README
+++ b/README
@@ -68,7 +68,15 @@ ATTRIBUTES
     Provided by the base role MooseX::ConfigFromFile. You can provide a
     default configfile pathname like so:
 
-      has +configfile ( default => '/etc/myapp.yaml' );
+      has '+configfile' => ( default => '/etc/myapp.yaml' );
+
+    You can pass an array of filenames if you want, but as usual the array
+    has to be wrapped in a sub ref.
+
+      has '+configfile' => ( default => sub { [ '/etc/myapp.yaml', '/etc/myapp_local.yml' ] } );
+
+    Config files are trivially merged at the top level, with the right-hand
+    files taking precedence.
 
 CLASS METHODS
   new_with_config