diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2018-02-06 12:13:55 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2018-04-17 11:32:26 -0700 |
commit | 1452eb73c153923ce69876b0e223b26b849a35e1 (patch) | |
tree | 34d58335d377cb9345174d6393907497018f195e /mesonbuild/mesonmain.py | |
parent | bbf71d9aa35c46c31e2363590d560f32455ba252 (diff) | |
download | meson-1452eb73c153923ce69876b0e223b26b849a35e1.zip meson-1452eb73c153923ce69876b0e223b26b849a35e1.tar.gz meson-1452eb73c153923ce69876b0e223b26b849a35e1.tar.bz2 |
coredata: encapsulate destination name
This means that there are no special args passed ot builtin args
anymore.
Diffstat (limited to 'mesonbuild/mesonmain.py')
-rw-r--r-- | mesonbuild/mesonmain.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/mesonmain.py b/mesonbuild/mesonmain.py index 4b55057..4b590a1 100644 --- a/mesonbuild/mesonmain.py +++ b/mesonbuild/mesonmain.py @@ -26,7 +26,7 @@ from .wrap import WrapMode, wraptool default_warning = '1' def add_builtin_argument(p, name, **kwargs): - k = kwargs.get('dest', name.replace('-', '_')) + k = coredata.get_builtin_option_destination(name) c = coredata.get_builtin_option_choices(k) b = coredata.get_builtin_option_action(k) h = coredata.get_builtin_option_description(k) @@ -65,7 +65,7 @@ def create_parser(): add_builtin_argument(p, 'werror') add_builtin_argument(p, 'layout') add_builtin_argument(p, 'default-library') - add_builtin_argument(p, 'warnlevel', dest='warning_level') + add_builtin_argument(p, 'warnlevel') add_builtin_argument(p, 'stdsplit') add_builtin_argument(p, 'errorlogs') p.add_argument('--cross-file', default=None, |