You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2020/11/24 21:02:00 UTC
[jira] [Comment Edited] (MNG-7032) Option -B still showing
formatting when used with --version
[ https://issues.apache.org/jira/browse/MNG-7032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17238373#comment-17238373 ]
Michael Osipov edited comment on MNG-7032 at 11/24/20, 9:01 PM:
----------------------------------------------------------------
I can confirm that. Both batch mode and {{style.color}} are evaluated after cli args are processed and right here {{-v}} and {{-h}} is evaluated. So none of the former has an effect. Yes, it is a bug.
was (Author: michael-o):
I can confirm that. Both batch mode and {{style.color}} are evaluated after cli args are processed and right here {{-v}} and {{-h}} is evaluated. So none of the former has an effect.
> Option -B still showing formatting when used with --version
> -----------------------------------------------------------
>
> Key: MNG-7032
> URL: https://issues.apache.org/jira/browse/MNG-7032
> Project: Maven
> Issue Type: Bug
> Components: Command Line, Logging
> Affects Versions: 3.6.3
> Environment: Running Ubuntu 20.04.1 LTS (Focal Fossa)
> Apache Maven 3.6.3
> Maven home: /usr/share/maven
> Java version: 11.0.8, vendor: AdoptOpenJDK, runtime: /opt/java/jdk-11.0.8+10
> Default locale: de_DE, platform encoding: UTF-8
> OS name: "linux", version: "5.4.0-54-generic", arch: "amd64", family: "unix"
> Reporter: Christian Koop
> Priority: Major
> Labels: easyfix
> Fix For: 3.7.0-candidate
>
>
> When running {{mvn -B --version}} the first line ({{'Apache Maven 3.6.3'}}) is written in bold although the option {{-B}} should have stripped that as it does with color in combination with other options.
> This causes an issue when logging to a file as the ASCII escape sequence is written to it in plain text (causing confusion).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)