aboutsummaryrefslogtreecommitdiff
path: root/meson.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-03-06 17:44:03 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2015-03-06 17:44:03 +0200
commitc0f097c0c74551972f7ec2203cd960824984f058 (patch)
treedfd1c84426b1e36af6b02449cc68532d19ff5fd4 /meson.py
parent519f159dccb329c5b548d9a70579bd7b6505876b (diff)
downloadmeson-c0f097c0c74551972f7ec2203cd960824984f058.zip
meson-c0f097c0c74551972f7ec2203cd960824984f058.tar.gz
meson-c0f097c0c74551972f7ec2203cd960824984f058.tar.bz2
Fix argparse to make rebuild work again.
Diffstat (limited to 'meson.py')
-rwxr-xr-xmeson.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/meson.py b/meson.py
index 1f92873..374b401 100755
--- a/meson.py
+++ b/meson.py
@@ -143,13 +143,15 @@ itself as required.'''
pickle.dump(b, open(dumpfile, 'wb'))
if __name__ == '__main__':
- options = parser.parse_args()
- args = options.directories
+ args = sys.argv[:]
if args[-1] == 'secret-handshake':
args = args[:-1]
handshake = True
else:
handshake = False
+ options = parser.parse_args(args[1:])
+ print(options.directories)
+ args = options.directories
if len(args) == 0 or len(args) > 2:
print('%s <source directory> <build directory>' % sys.argv[0])
print('If you omit either directory, the current directory is substituted.')