aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/minit.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/minit.py')
-rw-r--r--mesonbuild/minit.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/minit.py b/mesonbuild/minit.py
index efc5d2c..124e6c6 100644
--- a/mesonbuild/minit.py
+++ b/mesonbuild/minit.py
@@ -139,7 +139,8 @@ def add_arguments(parser: 'argparse.ArgumentParser') -> None:
Meson project.
'''
parser.add_argument("srcfiles", metavar="sourcefile", nargs="*", help="source files. default: all recognized files in current directory")
- parser.add_argument('-C', default='.', dest='wd', help='directory to cd into before running')
+ parser.add_argument('-C', dest='wd', action=mesonlib.RealPathAction,
+ help='directory to cd into before running')
parser.add_argument("-n", "--name", help="project name. default: name of current directory")
parser.add_argument("-e", "--executable", help="executable name. default: project name")
parser.add_argument("-d", "--deps", help="dependencies, comma-separated")