Commit 5a09abdd authored by Marco Mariani's avatar Marco Mariani

added version number to slapos help

parent efd0b05d
from setuptools import setup, find_packages from setuptools import setup, find_packages
import glob import glob
import os import os
version = '0.34.1-dev'
from slapos.version import version
name = 'slapos.core' name = 'slapos.core'
long_description = open("README.txt").read() + "\n" + \ long_description = open("README.txt").read() + "\n" + \
open("CHANGES.txt").read() + "\n" open("CHANGES.txt").read() + "\n"
......
...@@ -43,6 +43,7 @@ from slapos.grid.slapgrid import runUsageReport as report ...@@ -43,6 +43,7 @@ from slapos.grid.slapgrid import runUsageReport as report
from slapos.grid.svcbackend import supervisord from slapos.grid.svcbackend import supervisord
from slapos.grid.svcbackend import supervisorctl from slapos.grid.svcbackend import supervisorctl
from slapos.register.register import main as register from slapos.register.register import main as register
from slapos.version import version
# Note: this whole file is a hack. We should better try dedicated library # Note: this whole file is a hack. We should better try dedicated library
# like https://github.com/dhellmann/cliff or https://github.com/docopt/docopt. # like https://github.com/dhellmann/cliff or https://github.com/docopt/docopt.
...@@ -173,7 +174,7 @@ def main(): ...@@ -173,7 +174,7 @@ def main():
else: else:
is_node = False is_node = False
usage = """SlapOS command line interface. usage = """SlapOS %s command line interface.
For more informations, refer to SlapOS documentation. For more informations, refer to SlapOS documentation.
Client subcommands usage: Client subcommands usage:
...@@ -195,7 +196,7 @@ Node subcommands usage: ...@@ -195,7 +196,7 @@ Node subcommands usage:
slapos node status <process> slapos node status <process>
slapos node supervisorctl slapos node supervisorctl
slapos node supervisord slapos node supervisord
""" """ % version
# Parse arguments # Parse arguments
# XXX remove the "positional arguments" from help message # XXX remove the "positional arguments" from help message
......
version = '0.34.1-dev'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment