diff options
Diffstat (limited to 'mesonconf.py')
-rwxr-xr-x | mesonconf.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonconf.py b/mesonconf.py index 228ace5..e53875f 100755 --- a/mesonconf.py +++ b/mesonconf.py @@ -180,7 +180,10 @@ class Conf: self.print_aligned(optarr) if __name__ == '__main__': - options = parser.parse_args() + args = mesonlib.expand_arguments(sys.argv[:]) + if not args: + sys.exit(1) + options = parser.parse_args(args[1:]) if len(options.directory) > 1: print('%s <build directory>' % sys.argv[0]) print('If you omit the build directory, the current directory is substituted.') |