def __call__(self, parser, namespace, values, option_string=None):
        """
        Each action should call this logic.
        """
            
        dis_dict = {'--add': '+',
                    '--remove': '-',
                    '-a': '+',
                    '-rm': '-',
                    '--reset': '*'}
        #debug
        #print '%r %r %r' % (namespace, values, option_string)
        if option_string == '--reset':
            print 'Base reset to: ', values
            Log.history.append(('*' + str(values),
                               time.strftime(STATIC_T, time.gmtime())))
            Log.save_log()
        elif option_string == '--clear':
            Log.history = []
            Log.save_log()
            os.remove(STATIC_P)
            sys.exit('Clear all data...OK')
        else:
            try:
                Log.history.append((dis_dict[option_string] + str(values),
                                    time.strftime(STATIC_T, time.gmtime())))
            except KeyError:
                pass
            else:
                Log.save_log()
            Log.print_log()

        Each action should call this logic.
        
recipes/Python/577280_Holiday_Leave/recipe-577280.py