Revision 84a12e40 lib/cli.py
b/lib/cli.py | ||
---|---|---|
1033 | 1033 |
binary = argv[0].split("/")[-1] |
1034 | 1034 |
|
1035 | 1035 |
if len(argv) > 1 and argv[1] == "--version": |
1036 |
ToStdout("%s (ganeti) %s", binary, constants.RELEASE_VERSION) |
|
1036 |
ToStdout("%s (ganeti %s) %s", binary, constants.VCS_VERSION, |
|
1037 |
constants.RELEASE_VERSION) |
|
1037 | 1038 |
# Quit right away. That way we don't have to care about this special |
1038 | 1039 |
# argument. optparse.py does it the same. |
1039 | 1040 |
sys.exit(0) |
Also available in: Unified diff