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

# === About ============================================================================================================

"""
 __init__.py

Copyright © 2017 Yuto Mizutani.
This software is released under the MIT License.

Version: 1.0.0

TranslateAuthors: Yuto Mizutani
E-mail: yuto.mizutani.dev@gmail.com
Website: http://operantroom.com

Created: 2017/12/09
Device: MacBook Pro (Retina, 13-inch, Mid 2015)
OS: macOS Serria version 10.12.6
IDE: PyCharm Community Edition 2017.2.4
Python: 3.6.1
"""

# --- References ---
# --- notes ---
# --- Information ---
# --- Circumstances ---

# === import ===========================================================================================================

""" Standard library """
import sys
import os
import time
""" Third party library """
""" Local library """
from getdoi import Main

# === CONSTANTS ========================================================================================================

# === User Parameters ==================================================================================================

# === variables ========================================================================================================

__version__ = '0.1.0'
__author__ = 'Yuto Mizutani (yuto.mizutani.dev@gmail.com)'
__copyright__ = 'Copyright (c) 2017 Yuto Mizutani'
__license__ = 'MIT'
__all__ = ['']

# ======================================================================================================================


if __name__ == '__main__':
    # get arguments
    arguments = sys.argv
    # If it has arguments then get DOI using the arguments
    if len(arguments) > 1:
        main = Main(arguments[1:-1])
    # In most cases, work on Terminal
    else:
        main = Main()
