~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to scripts/usrmgt-server

  • Committer: mattgiuca
  • Date: 2008-02-28 21:29:37 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:612
scripts/usrmgt-server: Now checks the length of its arguments and gives a
proper usage message.

Show diffs side-by-side

added added

removed removed

Lines of Context:
232
232
    return actions[action](props[action])
233
233
 
234
234
if __name__ == "__main__":
 
235
    if len(sys.argv) <3:
 
236
        print >>sys.stderr, "Usage: usrmgt-server <port> <magic>"
 
237
        sys.exit(1)
235
238
    port = int(sys.argv[1])
236
239
    magic = sys.argv[2]
237
240