mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 23:43:39 +02:00
codegen: Require at least one interface file to be specified
Previously, running `gdbus-codegen` with no arguments would exit successfully with no output. While technically correct, that seems unhelpful. Require at least one interface file to be specified, so the user gets an error message if they don’t specify any. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
@@ -149,7 +149,7 @@ def apply_annotations(iface_list, annotation_list):
|
||||
|
||||
def codegen_main():
|
||||
arg_parser = argparse.ArgumentParser(description='D-Bus code and documentation generator')
|
||||
arg_parser.add_argument('files', metavar='FILE', nargs='*',
|
||||
arg_parser.add_argument('files', metavar='FILE', nargs='+',
|
||||
help='D-Bus introspection XML file')
|
||||
arg_parser.add_argument('--xml-files', metavar='FILE', action='append', default=[],
|
||||
help=argparse.SUPPRESS)
|
||||
|
Reference in New Issue
Block a user