zcget - Reads a value from a ZConf config.
zcget [-S (0|1)] [-s <set>] [-r] [-p] -c <config> -k <key>
zcget [-S (0|1)] [-s <set>] [-r] [-p] -C -c <config> -k <key> -K <comment key>
zcget [-S (0|1)] [-s <set>] [-r] [-p] -m -c <config> -k <key> -K <meta key>
This is the configuration to operate on.
Search comments.
This is the key to operate on.
The meta or comment key.
Search metas.
Print in ZML style.
The supplied key values are regular expression.
Otherwise '^' is prefixed and '$' and is postfixed.
The set to operate on. This is the only optional switch. If it is now defined, The choosen/default config will be used.
If set to true, this will enable system mode.
Any error codes not specified below are ZConf error codes.
Invalid usage of some sort.
Copyright (c) 2009, Zame C. Bowers <vvelox@vvelox.net>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS` OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Add meta and comment support.
Add regex flag.
Add key printing support.
Massive documentation in provement.
--help correction.
Add sys mode.
Fix POD SYNOPSIS section and version info.
Initial release.
Desktop
any
To install ZConf, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ZConf
CPAN shell
perl -MCPAN -e shell install ZConf
For more information on module installation, please visit the detailed CPAN module installation guide.