Error when using tentacle run-script

Hi Paul,

getting the following error when trying to use the new run-script option on the tentacle

Octopus.Shared.Startup.OptionException: Error: Found 3 option values when expecting 2.                                                                          
   at Octopus.Shared.Startup.OptionSet.ParseValue(String option, OptionContext c) in c:\BuildAgent\work\7bf5272a44079f5\source\Octopus.Shared\Startup\Options.cs:line 849                                                                       
   at Octopus.Shared.Startup.OptionSet.Parse(String argument, OptionContext c) in c:\BuildAgent\work\7bf5272a44079f5\source\Octopus.Shared\Startup\Options.cs:line 799                                                                          
   at Octopus.Shared.Startup.OptionSet.<>c__DisplayClass9.<Parse>b__8(String argument) in c:\BuildAgent\work\7bf5272a44079f5\source\Octopus.Shared\Startup\Options.cs:line 731                                                                  
   at System.Linq.Enumerable.WhereArrayIterator`1.MoveNext()                    
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)         
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)              
   at Octopus.Shared.Startup.OptionSet.Parse(IEnumerable`1 arguments) in c:\BuildAgent\work\7bf5272a44079f5\source\Octopus.Shared\Startup\Options.cs:line 745   
   at Octopus.Shared.Startup.CommandProcessor.Process(String[] args) in c:\BuildAgent\work\7bf5272a44079f5\source\Octopus.Shared\Startup\CommandProcessor.cs:line 40

The command line used was

"C:\Program Files (x86)\Octopus Tentacle\Agent\Tentacle.exe" run-script -v OctopusEnvironmentName="LOC" -v ClientCode="BUK" -v DeployToolsDir="D:\DeployTools" -v DeployService="http://GetStructureFor/" -v FixedStructure="False" -f Tools\Deploy.ps1 -w D:\vNext\NuGetFeed\Temp" 

Thanks

Bruce

Hi Bruce,

It looks like there might be an extra quote at the end that shouldn’t be there, or is that just a copy/paste issue?

Paul

Sorry Paul,

command line should be this

Copy paste and md formating issuedm, the command line used was

"C:\Program Files (x86)\Octopus Tentacle\Agent\Tentacle.exe" run-script -v OctopusEnvironmentName="LOC" -v ClientCode="BUK" -v DeployToolsDir="D:\DeployTools" -v DeployService="http://GetStructureFor/" -v FixedStructure="False" -f Tools\Deploy.ps1 -w "D:\vNext\NuGetFeed\Temp"

Hi Bruce,

You are right. It’s a bug in the command line parser (NDesk.Options) - I’ll release a fix shortly :frowning:

Paul

Hi Bruce,

This should be fixed in the latest release:

Paul