#!/usr/bin/python
# -*- coding: utf-8 -*-

"""

Main Latte application
This is run as a binary application

"""

import sys
import argparse

from latte.latte import Latte
from latte.Analyzer import Analyzer
from latte.Config import Config

description = """Linux automatic time tracker

This runs activity logger and tracks time spent on activities based on window titles.
Data files are saved to ~/.config/latte (default, but configurable)

To check usage statistics run `lattestats` command.

More information: 
https://github.com/flakas/Latte (original version)
https://github.com/Ariacorporate/Latte (this fork)"""

parser = argparse.ArgumentParser(
        description=description,
        formatter_class=argparse.RawTextHelpFormatter)
parser.add_argument('-s', '--silent', action='store_true', help='Silence all output from latte')
args = parser.parse_args()

Latte(silent=args.silent).run()
