Permalink
Browse files

Patch adds a usage statement and deals with unknown commands (Josh Wr…

…ight).

git-svn-id: http://vboxweb.googlecode.com/svn/trunk@88 729376a8-6c6b-11de-afdd-bb9f892af8c1
  • Loading branch information...
1 parent 49c77f6 commit e678762e918660d764af056ace8141dc2b7eb348 vboxweb committed Oct 7, 2009
Showing with 20 additions and 0 deletions.
  1. +20 −0 VBoxWebSrv.py
View
@@ -573,6 +573,26 @@ def main(argv = sys.argv):
print "Syntax: " + argv[0] + " rdpweb update"
return
bRDPWebForceUpdate = True
+ elif argv[1] == "help":
+ print """
+VBoxWeb Command Usage:
+
+ adduser <username> <password>
+ -Add a new user to VBoxWeb
+
+ deluser <username>
+ -Delete an existing user
+
+ rdpweb update
+ -Update the embeddded flash RDP viewer
+
+ help
+ -Display this message
+"""
+ return
+ else:
+ print "\nUnknown command '%s'. See '%s help' for available commands" % (argv[1], argv[0])
+ return
# Why subscribe() doesn't take callback argument, having global vboxMgr is a bit ugly
# AH: I think this is bogus, I never saw the callbacks being called

0 comments on commit e678762

Please sign in to comment.