JetBrains / teamcity-commandline

Apache License 2.0
5 stars 5 forks source link

When using run command you have to duplicate certain args e.g. '--force-compatibility-check --force-compatibility' #1

Open sandipchitale opened 1 year ago

sandipchitale commented 1 year ago

For example:

java run -n --force-compatibility-check --force-compatibility-check -c ProjectForRemoteRun -m "5058988 - Bug fixes" @C:\temp\p4-changelist-5058988.filelist

This has to do this logic:

https://github.com/JetBrains/teamcity-commandline/blob/b3a774949638f54bdc6de80a0da8217c0ee66f56/command.line/java/com/jetbrains/teamcity/command/RemoteRun.java#L634

https://github.com/JetBrains/teamcity-commandline/blob/b3a774949638f54bdc6de80a0da8217c0ee66f56/command.line/java/com/jetbrains/teamcity/command/RemoteRun.java#L635

which assumes that every command line option has value.

By passing duplicate --force-compatibility-check --force-compatibility-check it stays in sync while parsing the rest of the options, files and @@flelist parsing

sandipchitale commented 1 year ago

Bump.