def get_log_from_input():
    """
    If an application is invoked without any arguments,
    the data for a log is retrieved through an interactive session.
    """
    while True:
        minutes = input(
            'Enter the working time (in minutes, Ctrl-C for cancel): ').strip()
        if not minutes.isdigit():
            print('No minutes have been entered. Try once more...')
            continue
        comment = input('Comment on the entry: ') or None
        print('Data was successfully added: Minutes - {}, Comment - {}'.
            format(minutes, comment))
        return [minutes, comment]
