diff options
author | Igor Gnatenko <i.gnatenko.brain@gmail.com> | 2015-06-19 10:36:27 +0300 |
---|---|---|
committer | Igor Gnatenko <i.gnatenko.brain@gmail.com> | 2015-06-19 10:36:27 +0300 |
commit | f1bc1e2757db5d719a2b7c51fb4936d0f79d8767 (patch) | |
tree | 7dbb24bf23967ae1fe56ec0a7305a5168fae623b | |
parent | c0808f112ec502fc40bc2a8132ec79300e2950fb (diff) | |
download | meson-f1bc1e2757db5d719a2b7c51fb4936d0f79d8767.zip meson-f1bc1e2757db5d719a2b7c51fb4936d0f79d8767.tar.gz meson-f1bc1e2757db5d719a2b7c51fb4936d0f79d8767.tar.bz2 |
mesonconf: fix tb and parsing options
Traceback (most recent call last):
File "./mesonconf.py", line 202, in <module>
print(args)
NameError: name 'args' is not defined
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
-rwxr-xr-x | mesonconf.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mesonconf.py b/mesonconf.py index 8773aa0..23ecee4 100755 --- a/mesonconf.py +++ b/mesonconf.py @@ -198,8 +198,7 @@ class Conf: if __name__ == '__main__': options = parser.parse_args() - if len(options.directory) > 1: - print(args) + if len(options.directory) < 1: print('%s <build directory>' % sys.argv[0]) print('If you omit the build directory, the current directory is substituted.') sys.exit(1) |