From 668a856c141c088ce7acb0afa211ea97f7d55ea0 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sat, 18 Dec 2010 12:49:21 -0800 Subject: [PATCH] Document that you can read CLI config settings in the configuration reference. --- .../tutorials/configuration-reference.markdown | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/doc-src/content/help/tutorials/configuration-reference.markdown b/doc-src/content/help/tutorials/configuration-reference.markdown index ccfa79d3..8bf0d11b 100644 --- a/doc-src/content/help/tutorials/configuration-reference.markdown +++ b/doc-src/content/help/tutorials/configuration-reference.markdown @@ -64,6 +64,21 @@ Example: When using the compass command line, configuration options that you set on the command line will override the corresponding settings in your configuration file. +## Inspecting Configuration Settings passed via the Command Line + +When using the compass command line, configuration options that you set on the +command line can be inspected within the configuration file. For instance, +if you set the environment: + + $ compass compile -e production --force + +Then you can inspect the value like so: + + output_style = (environment == :production) ? :compressed : :expanded + +Values that are not set on the CLI will be `nil` even though they will have a default value +later on. + ## Configuration Properties