@cmdapp.cmd
@cmdapp.default
def status(logfile, time_format):
  "show current status"

  try:
    r = read(logfile, time_format)[-1]
    if r[1][1]:
      return summary(logfile, time_format)
    else:
      print "working on %s" % colored(r[0], attrs=['bold'])
      print "  since    %s" % colored(
        server.date_to_txt(r[1][0], time_format), 'green')
      print "  to now,  %s" % colored(
        server.date_to_txt(now(), time_format), 'green')
      print colored(time_elapsed(r[1][0]), 'red') % "        => %s elapsed"
  except IndexError:
    return cmdapp.help()
dataset/ETHPy150Open adeel/timed/timed/client.py/status/swapped operands of `%`