Revision 5eae854d kamaki/cli/commands/history_cli.py

b/kamaki/cli/commands/history_cli.py
39 39
from kamaki.cli.history import History
40 40
from kamaki.cli.utils import print_list
41 41
from kamaki.cli import command
42
from . import _command_init
42 43

  
43
class _init_history(object):
44
	def __init__(self, arguments={}):
45
		self.arguments=arguments
46
		try:
47
			self.config = self.get_argument('config')
48
		except KeyError:
49
			pass
50

  
51
	def get_argument(self, argterm):
52
		return self.arguments[argterm].value
53

  
44
class _init_history(_command_init):
54 45
	def main(self):
55 46
		self.history = History(self.config.get('history', 'file'))
56 47

  

Also available in: Unified diff