Lines Matching +full:- +full:- +full:prefix
2 # See the COPYING file in the top-level directory.
21 def invalid_prefix_char(prefix: str) -> Optional[str]:
22 match = must_match(r'([A-Za-z_.-][A-Za-z0-9_.-]*)?', prefix)
23 if match.end() != len(prefix):
24 return prefix[match.end()]
28 def create_backend(path: str) -> QAPIBackend:
34 raise QAPIError("argument of -B must be of the form MODULE.CLASS")
60 def main() -> int:
62 gapi-gen executable entry point.
63 Expects arguments via sys.argv, see --help for details.
69 parser.add_argument('-b', '--builtins', action='store_true',
70 help="generate code for built-in types")
71 parser.add_argument('-o', '--output-dir', action='store',
74 parser.add_argument('-p', '--prefix', action='store',
76 help="prefix for symbols")
77 parser.add_argument('-u', '--unmask-non-abi-names', action='store_true',
79 help="expose non-ABI names in introspection")
80 parser.add_argument('-B', '--backend', default=None,
83 # Option --suppress-tracing exists so we can avoid solving build system
85 parser.add_argument('--suppress-tracing', action='store_true',
91 funny_char = invalid_prefix_char(args.prefix)
93 msg = f"funny character '{funny_char}' in argument of --prefix"
102 prefix=args.prefix,