diff options
author | Dominik Holland <dominik.holland@pelagicore.com> | 2018-01-10 10:50:43 +0100 |
---|---|---|
committer | Robert Griebl <robert.griebl@pelagicore.com> | 2018-01-11 14:07:08 +0000 |
commit | ce1033e1cd955f09b623186683b81e8ae96b50ba (patch) | |
tree | 44a3c64af1f2b7e5147d6bbfd1b9a3e5b9a410e6 /src | |
parent | f3b5c271779d8f4544d9126fb1fc8903089987d0 (diff) | |
download | qtivi-ce1033e1cd955f09b623186683b81e8ae96b50ba.tar.gz |
Add better usage documentation to the ivigenerator
Change-Id: Iec68f40db8016c008f0d60d8edb2e67c259a4a11
Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
Diffstat (limited to 'src')
-rwxr-xr-x | src/tools/ivigenerator/generate.py | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/tools/ivigenerator/generate.py b/src/tools/ivigenerator/generate.py index 66904cb..4efe392 100755 --- a/src/tools/ivigenerator/generate.py +++ b/src/tools/ivigenerator/generate.py @@ -601,17 +601,21 @@ def run(format, moduleConfig, src, dst): @click.command() -@click.option('--reload/--no-reload', default=False) -@click.option('--format', '-f', multiple=False) -@click.option('--module', default=False) -@click.option('--validation_info', default=False) -@click.option('--force', is_flag=True, default=False) +@click.option('--reload/--no-reload', default=False, help='Specifies whether the generator should keep track of the changes in the IDL file and update output on the fly (--no-reload by default).') +@click.option('--format', '-f', multiple=False, help='The format the autogenerator should use for the generation. This can either be one of the builtin formats or a path to a template folder. Builtin formats are: \n' + '\n'.join(IVI_DEFAULT_TEMPLATES)) +@click.option('--module', default=False, help='The name of the Qt module the autogenerator is generating. This is automatically used by the qmake integration and passed directly to the qface templates.') +@click.option('--validation_info', is_flag=True, default=False, help='Annotates every interface with additional JSON code containing all the options used to generate this interface. This can be used to validate the generation of the interface.') +@click.option('--force', is_flag=True, default=False, help='Always write all output files') @click.argument('src', nargs=-1, type=click.Path(exists=True)) @click.argument('dst', nargs=1, type=click.Path(exists=True)) def app(src, dst, format, reload, module, validation_info, force): - """Takes several files or directories as src and generates the code - in the given dst directory.""" + """ + The QtIvi Autogenerator (ivigenerator) + + It takes several files or directories as src and generates the code + in the given dst directory. + """ global builtin_config builtin_config_path = here / '.config' |