[MXS-3308] Passing options in interactive mode returns an empty error Created: 2020-11-24  Updated: 2021-08-25  Resolved: 2021-08-25

Status: Closed
Project: MariaDB MaxScale
Component/s: maxctrl
Affects Version/s: 2.5.5
Fix Version/s: 6.2.0

Type: Bug Priority: Major
Reporter: markus makela Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MXS-3279 maxctrl password option -p throws error Closed
Sprint: MXS-SPRINT-121, MXS-SPRINT-138

 Description   

The following command in interactive mode:

create server server5 127.0.0.1 3006 --user admin

produces the following error:

Error: {}

This seems to be due to duplicate arguments being given on the "virtual" command line to which the user input is given to.



 Comments   
Comment by markus makela [ 2021-01-05 ]

Seems the fix to this problem causes another, more serious, problem: https://github.com/yargs/yargs/issues/1318#issuecomment-754632732

Comment by markus makela [ 2021-08-18 ]

Filed a new bug for the issue: https://github.com/yargs/yargs/issues/2011

Comment by markus makela [ 2021-08-25 ]

Added a workaround that prevents the global options from being used in interactive mode.

Generated at Thu Feb 08 04:20:28 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.