Revision e9a92550

b/kamaki/cli/__init__.py
419 419
            exit(0)
420 420

  
421 421
        _init_session(_arguments)
422
        print('ICN[%s]' % _arguments['config'].value)
422 423

  
423 424
        if unparsed:
424 425
            _history = History(_arguments['config'].get('history', 'file'))
b/kamaki/cli/argument.py
116 116

  
117 117

  
118 118
class ConfigArgument(Argument):
119
    _config_file = None
120

  
119 121
    @property
120 122
    def value(self):
121 123
        super(self.__class__, self).value
......
123 125

  
124 126
    @value.setter
125 127
    def value(self, config_file):
126
        self._value = Config(config_file) if config_file else Config()
128
        if config_file:
129
            self._value = Config(config_file)
130
            self._config_file = config_file
131
        elif self._config_file:
132
            self._value = Config(self._config_file)
133
        else:
134
            self._value = Config()
127 135

  
128 136
    def get(self, group, term):
129 137
        return self.value.get(group, term)
b/kamaki/cli/command_shell.py
37 37
from argparse import ArgumentParser
38 38

  
39 39
from kamaki.cli import _exec_cmd, _print_error_message
40
from kamaki.cli.argument import _arguments, update_arguments
40
from kamaki.cli.argument import update_arguments
41 41
from kamaki.cli.utils import print_dict
42 42
from kamaki.cli.history import History
43 43
from kamaki.cli.errors import CLIError
......
47 47
    arguments.pop('version', None)
48 48
    arguments.pop('options', None)
49 49
    arguments.pop('history', None)
50
    print('SHELL? [%s]' % arguments['config'].value)
50 51
    shell = Shell()
51 52
    shell.set_prompt(exe_string)
52 53
    from kamaki import __version__ as version
b/kamaki/cli/commands/config_cli.py
37 37
from kamaki.cli.command_tree import CommandTree
38 38

  
39 39
config_cmds = CommandTree('config', 'Configuration commands')
40
_command = [config_cmds]
40
_commands = [config_cmds]
41 41

  
42 42

  
43 43
@command(config_cmds)

Also available in: Unified diff