build-c

Create a customized Command line argument parser in C

Author
Renaud Guillard
Version
1.0

Usage

	build-c [([-b] --schema-version <...> | [-S] -x <path> ([-e] -i <path>)) -p <...> --struct-style <...> --function-style <...> --variable-style <...>] [[-u] -o <path> -f <...>] [--ns-xml-path <path> --ns-xml-path-relative] [--help]

Global options

	Generation optionsGeneration modeSelect what to generateGeneric code-b, --base: Generate ns-xml utility and parser coreThe generated code is independent from any program interface definition--schema-version: Program interface definition schema versionThe argument have to be one of the following:2.0Default value: 2.0Program specific code-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 validationsFile structure scheme-e, --embed: Generate program parser and embed generic utility and parser core-i, --include: Generate program parser and include a pre-genrated utility and parser coreThe namimg styles for variables, structs and functions of the program parser pre-generated files must match-p, --prefix: Program struct & function names prefixesThe default behavior use the program name described in the XML program interface definition fileNaming stylesDefine the coding style of the public structs, functions and variables.The default coding style of the ns-xml utilities and parser core is 'underscore'. Which means fully lower case names where words are separated with underscores. struct nsxml_struct_name;Private functions and internal struct members of the ns-xml parser core are not modified--struct-style, --struct: Structs naming conventionGenerate struct names according the given naming conventionThe argument have to be one of the following:underscore, camelCase, CamelCase or noneDefault value: none--function-style, --function, --func: Functions naming conventionGenerate function names according the given naming conventionThe argument have to be one of the following:underscore, camelCase, CamelCase or noneDefault value: none--variable-style, --variable, --var: Variables naming conventionGenerate variable and enum names according the given naming conventionThe argument have to be one of the following:underscore, camelCase, CamelCase or noneDefault value: noneOutput location-o, --output: Output folder path for the generated filesDefault value: .-f, --file-base, --file: Output file base nameC Header file extension (.h) and C Source code extension (.c) are automatically appended to the nameDefault value: <auto>-u, --overwrite, --force: Overwrite existing filesns-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--help: Display program usage

Copyright & Licensing

Copyright © 2018 by Renaud Guillard

Distributed under the terms of the MIT License, see LICENSE