You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do not require to define --generator in C++ build script
The generator can be defined either by the --generator cli flag of
build.py or through the optionally included config file (--include
argument). However, until now, it was mandatory to define the
generator with --generator even if it was also defined (or redefined)
by the include file as well. Now, it's optional which approach is used.
help='directory to append to the include path, usually which contains the file produced by grammarinator-process (may be specified multiple times)')
128
128
sgrp.add_argument('--suffix', metavar='NAME',
129
129
help='suffix of the specialized artefacts, possibly referring to the input format (default: derived from the generator class name by removing Generator and lowercasing)')
@@ -134,8 +134,11 @@ def main():
134
134
'json': 'JsonTreeCodec'
135
135
}[args.tree_format] ifargs.tree_formatelseNone
136
136
137
-
if (args.generateorargs.grlf) and (notargs.includedirornotargs.generator):
138
-
parser.error('To build specialized artefacts, the `--generator` and `--includedir` arguments must be defined.')
0 commit comments