You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
464 B
Python
27 lines
464 B
Python
#!/usr/bin/env python2
|
|
|
|
import sys
|
|
|
|
def usage():
|
|
print "Specify a valid action.\nPossible actions: start, stop, add-node, reload-config, reload-packages"
|
|
|
|
if len(sys.argv) < 2:
|
|
usage()
|
|
exit(1)
|
|
|
|
if sys.argv[1] == "start":
|
|
import application
|
|
application.run(sys.argv[2:], "blah")
|
|
elif sys.argv[1] == "stop":
|
|
pass
|
|
else:
|
|
usage()
|
|
exit(1)
|
|
|
|
|
|
"""
|
|
parser = argparse.ArgumentParser(description="Nexus control application")
|
|
|
|
config = core.config.ConfigReader("")
|
|
"""
|