diff options
author | Juergen Ryannel <juergen.bocklage-ryannel@pelagicore.com> | 2016-12-05 15:10:04 +0100 |
---|---|---|
committer | Juergen Ryannel <juergen.bocklage-ryannel@pelagicore.com> | 2016-12-05 15:10:04 +0100 |
commit | a98033f4cac3247670e2f28cfc7aa3250e64e050 (patch) | |
tree | 967151bcc90fc807443e7bb0f67911c0008cedd5 /cli.py | |
parent | 5a90b31c56d7639e3e4bb46e3f196c9efad15812 (diff) | |
download | qtivi-qface-a98033f4cac3247670e2f28cfc7aa3250e64e050.tar.gz |
WIP: update qtcpp code generator
Diffstat (limited to 'cli.py')
-rwxr-xr-x | cli.py | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -103,7 +103,7 @@ class RunScriptChangeHandler(FileSystemEventHandler): @click.argument('output', nargs=1, type=click.Path(exists=True)) @click.option('--runner', type=click.File('r'), help="use the runner YAML file to configure the generation") @click.option('--reload/--no-reload', default=False, help="if enabled auto-reload the generator on input changes") -@click.option('--generator', help="specifies the generator (either by name or path)") +@click.option('--generator', help="specifies the generator (either by name or path)", required=True) @click.option('--clean/--no-clean', help="initially cleans the output directory") def generate(input, output, runner, generator, reload, clean): """generate from the list of input files or directories the source code @@ -117,9 +117,6 @@ def generate(input, output, runner, generator, reload, clean): generator = config['generator'] input = config['input'] output = config['output'] - if not generator or not input or not output: - click.echo('generator, input and output arguments are required') - sys.exit(-1) # look if generator points to an external generator if not generator.exists(): click.echo('genertor does not exists: {0}'.format(generator)) |