Browse Source

fixed usage message

Nicolo' Palazzini 4 years ago
parent
commit
994ed0a674
1 changed files with 2 additions and 2 deletions
  1. 2 2
      labcalcoloctl

+ 2 - 2
labcalcoloctl

@@ -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