##// END OF EJS Templates
dispatch: better error message for --config option
Bill Schroeder -
r9825:0d850f8b default
parent child Browse files
Show More
@@ -279,7 +279,8 b' def _parseconfig(ui, config):'
279 279 raise IndexError
280 280 ui.setconfig(section, name, value)
281 281 except (IndexError, ValueError):
282 raise util.Abort(_('malformed --config option: %s') % cfg)
282 raise util.Abort(_('malformed --config option: %r '
283 '(use --config section.name=value)') % cfg)
283 284
284 285 def _earlygetopt(aliases, args):
285 286 """Return list of values for an option (or aliases).
@@ -107,11 +107,11 b' b'
107 107
108 108 %% --config
109 109 quuxfoo
110 abort: malformed --config option:
111 abort: malformed --config option: a.b
112 abort: malformed --config option: a
113 abort: malformed --config option: a.=
114 abort: malformed --config option: .b=
110 abort: malformed --config option: '' (use --config section.name=value)
111 abort: malformed --config option: 'a.b' (use --config section.name=value)
112 abort: malformed --config option: 'a' (use --config section.name=value)
113 abort: malformed --config option: 'a.=' (use --config section.name=value)
114 abort: malformed --config option: '.b=' (use --config section.name=value)
115 115 %% --debug
116 116 changeset: 1:b6c483daf2907ce5825c0bb50f5716226281cc1a
117 117 tag: tip
General Comments 0
You need to be logged in to leave comments. Login now