Shell script builder which use program interface XML definition file to automatically generate command line processing and help messages
build-shellscript [-Spd] -s <path> [-x <path>] [(-i <...> | -I <...>)] [--force-interpreter] [--help] -o <path> [--ns-xml-path <path> --ns-xml-path-relative]
-s, --shell: XML shell fileA XML file following the XML shell script (XSH) schemaThe file may include a program interface XML definition-x, --xml-description: Program description fileIf the program description file is provided, the xml file will be validated before any XSLT processing-S, --skip-validation, --no-validation: Skip XML Schema validationsThe default behavior of the program is to validate the given xml-based file(s) against its/their xml schema (http://xsd.nore.fr/program etc.). This option will disable schema validationsDefault interpreter-i, --interpreter: Default shell interpreter typeThe interpreter family to use if the XSH file does not define one.The argument can be one the following :bash, zsh or ksh-I, --interpreter-cmd: Default shell interpreter invocation directiveThis value if used if the XSH file does not define oneThe argument can be one the following :/usr/bin/env bash, /bin/bash, /usr/bin/env zsh or /bin/zsh--force-interpreter: Force to use the interpreter defined by --interpreter or --interpreter-cmdThis option has no meaning if none of --interpreter or --interpreter-cmd is set-p, --prefix-sc-variables: Prefix subcommand options bound variable namesThis will prefix all subcommand options bound variable name by the subcommand name (sc_varianbleNmae). This avoid variable name aliasing.-d, --debug: Generate debug messages in help and command line parsing functions--help: Display program usage-o, --output: Output file pathns-xml source path options--ns-xml-path: ns-xml source pathLocation of the ns folder of ns-xml package--ns-xml-path-relative: ns source path is relative this program path
Copyright © 2011-2018 by Renaud Guillard (dev@nore.fr)
Distributed under the terms of the MIT License, see LICENSE