# File wfo/main.rb, line 148
  def do_status(argv)
    opt = OptionParser.new
    opt.banner = 'Usage: wfo status [options] [local-filename...]'
    opt_u = false; opt.def_option('-u', 'update check') { opt_u = true }
    opt.def_option('-h', 'help') { puts opt; exit 0 }
    opt.parse!(argv)
    WebClient.do {
      ws = argv_to_workareas(argv)
      if opt_u
        ws.each {|w|
          accessor = w.make_accessor
          remote_text = accessor.current_text
          local_text = w.local_text
          original_text = w.original_text
          if original_text == local_text
            if original_text == remote_text
              # not interesting.
            else
              puts "#{w.filename}: needs-update"
            end
          else
            if original_text == remote_text
              puts "#{w.filename}: localy-modified"
            else
              puts "#{w.filename}: needs-merge"
            end
          end
        }
      else
        ws.each {|w|
          local_text = w.local_text
          original_text = w.original_text
          if original_text != local_text
            puts "#{w.filename}: localy-modified"
          end
        }
      end
    }
  end