diff options
author | Justin Clark-Casey (justincc) | 2011-01-21 23:59:55 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-01-21 23:59:55 +0000 |
commit | cb14e1d2720fdee0c77280d7c397c02116c278ca (patch) | |
tree | 0c899fb54c3e26423dffa1377eba426f1bd79b4c /OpenSim/Framework/Console | |
parent | remove some mono compiler warnings (diff) | |
download | opensim-SC-cb14e1d2720fdee0c77280d7c397c02116c278ca.zip opensim-SC-cb14e1d2720fdee0c77280d7c397c02116c278ca.tar.gz opensim-SC-cb14e1d2720fdee0c77280d7c397c02116c278ca.tar.bz2 opensim-SC-cb14e1d2720fdee0c77280d7c397c02116c278ca.tar.xz |
Update the "config get <section> <key>" command to "config get [<section>] [<key>]"
The config get command shows a current config value on the console.
Now, if <key> is omitted then all the values for the given section are printed.
If <section> is ommitted then all sections and all keys are printed.
Current config can also be dumped to a file using "config save <path>". This can be handy for resolving or eliminating config issues
Diffstat (limited to 'OpenSim/Framework/Console')
-rwxr-xr-x | OpenSim/Framework/Console/ConsoleBase.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Framework/Console/ConsoleBase.cs b/OpenSim/Framework/Console/ConsoleBase.cs index 22ce880..3ef76cf 100755 --- a/OpenSim/Framework/Console/ConsoleBase.cs +++ b/OpenSim/Framework/Console/ConsoleBase.cs | |||
@@ -75,6 +75,11 @@ namespace OpenSim.Framework.Console | |||
75 | { | 75 | { |
76 | System.Console.WriteLine(text); | 76 | System.Console.WriteLine(text); |
77 | } | 77 | } |
78 | |||
79 | public virtual void OutputFormat(string format, params string[] components) | ||
80 | { | ||
81 | Output(string.Format(format, components)); | ||
82 | } | ||
78 | 83 | ||
79 | public string CmdPrompt(string p) | 84 | public string CmdPrompt(string p) |
80 | { | 85 | { |