|
@@ -13,7 +13,7 @@ from threading import Thread
|
|
|
from getpass import getpass
|
|
|
|
|
|
choices = ('status','start','stop', 'doctor')
|
|
|
-parser = argparse.ArgumentParser(description="Simple tool to handle LabCalcolo's VMs.", usage=sys.argv[0]+' {'+','.join(choices)+'} [--options]')
|
|
|
+parser = argparse.ArgumentParser(description="Simple tool to handle LabCalcolo's VMs.", usage='%(prog)s {'+','.join(choices)+'} [--options]')
|
|
|
|
|
|
## positional arguments
|
|
|
parser.add_argument( 'cmd', nargs="?", choices=choices, default='status',
|
|
@@ -178,7 +178,7 @@ nodes = []
|
|
|
if len(sys.argv) < 2:
|
|
|
parser.print_usage()
|
|
|
print "\nSimple tool to handle LabCalcolo's VMs."
|
|
|
- print '\nTry: "'+sys.argv[0]+' --help" to display help message.'
|
|
|
+ print '\nTry: "labcalcoloctl --help" to display help message.'
|
|
|
sys.exit(1)
|
|
|
|
|
|
# Filter hostlist according to arguments
|