jp (shell): fixed use of profile + added EOF handling:

- main profile (i.e. the one specified on command line when invocating "jp shell") was not used. It is now added to arguments if the value is not overriden on command line or in use
- EOF (i.e. when user press C-d) is now understood as "quit" command
This commit is contained in:
Goffi 2017-09-08 07:58:10 +02:00
commit 15ff6aedf4

View file

@ -89,7 +89,7 @@ def get_use_args(host, args, use, verbose=False, parser=None):
value=escape(value)))
else:
if verbose:
host.disp(_(u'arg {name}={value} set (in USE)').format(name=arg, value=escape(value)))
host.disp(_(u'arg {name}={value} (in USE)').format(name=arg, value=escape(value)))
if not action.option_strings:
pos_args.append(value)
else: