diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-03-06 17:44:03 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-03-06 17:44:03 +0200 |
commit | c0f097c0c74551972f7ec2203cd960824984f058 (patch) | |
tree | dfd1c84426b1e36af6b02449cc68532d19ff5fd4 /meson.py | |
parent | 519f159dccb329c5b548d9a70579bd7b6505876b (diff) | |
download | meson-c0f097c0c74551972f7ec2203cd960824984f058.zip meson-c0f097c0c74551972f7ec2203cd960824984f058.tar.gz meson-c0f097c0c74551972f7ec2203cd960824984f058.tar.bz2 |
Fix argparse to make rebuild work again.
Diffstat (limited to 'meson.py')
-rwxr-xr-x | meson.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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.') |