Fix for issue 3678 (dsconfig displays corresponding command, although --displayCommand not specified)
Check the provided arguments before printing the command-line.
| | |
| | | MenuResult<Integer> result = handler.run(this, factory); |
| | | |
| | | if (result.isSuccess()) { |
| | | if (isInteractive()) |
| | | if (isInteractive() && |
| | | handler.isCommandBuilderUseful()) |
| | | { |
| | | println(); |
| | | println(INFO_DSCFG_NON_INTERACTIVE.get( |
| | | getCommandBuilder(handler).toString())); |
| | | printCommandBuilder(getCommandBuilder(handler)); |
| | | } |
| | | |
| | | return result.getValue(); |
| | | } else { |
| | | // User must have quit. |