Revision f93427cd daemons/ganeti-watcher

b/daemons/ganeti-watcher
470 470
  """
471 471
  global client # pylint: disable-msg=W0603
472 472

  
473
  options, _ = ParseOptions()
473
  options, args = ParseOptions()
474

  
475
  if args: # watcher doesn't take any arguments
476
    print >> sys.stderr, ("Usage: %s [-f] " % sys.argv[0])
477
    sys.exit(constants.EXIT_FAILURE)
474 478

  
475 479
  utils.SetupLogging(constants.LOG_WATCHER, debug=options.debug,
476 480
                     stderr_logging=options.debug)

Also available in: Unified diff