Browse Source

fixed usage message

Nicolo' Palazzini 5 years ago
parent
commit
030047a9ea
1 changed files with 2 additions and 2 deletions
  1. 2 2
      xfreerdpctl

+ 2 - 2
xfreerdpctl

@@ -12,7 +12,7 @@ import subprocess, sys
 from threading import Thread
 
 choices = ('status','start','stop')
-parser = argparse.ArgumentParser(description='Simple tool to handle xfreerdp on LCM nodes.', usage=sys.argv[0]+' {'+','.join(choices)+'} [--options]')
+parser = argparse.ArgumentParser(description='Simple tool to handle xfreerdp on LCM nodes.', usage='%(prog)s {'+','.join(choices)+'} [--options]')
 
 ## positional arguments
 parser.add_argument( 'cmd', nargs="?", choices=choices, default='status', help='Specify command to execute, default is \'status\'' )
@@ -143,7 +143,7 @@ nodes = []
 if len(sys.argv) < 2:
 	parser.print_usage()
 	print "\nSimple tool to handle xfreerdp on LCM nodes."
-	print '\nTry: "'+sys.argv[0]+' --help" to display help message.'
+	print '\nTry: "xfreerdpctl --help" to display help message.'
 	sys.exit(1)
 
 # Filter hostlist according to arguments