[
https://issues.apache.org/jira/browse/THRIFT-2146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13748904#comment-13748904
]
Chris Stylianou commented on THRIFT-2146:
-----------------------------------------
Thanks Jens for looking into this, I use the downloadable binaries from the
Thrift website.
After your comments above, I carried out some more investigations and found
that the error was being caused by PowerShell, not Thrift.
Apparently PowerShell evaluates comma's on the command line as arrays, which
was adding whitespace between the options.
See:
[http://defaultset.blogspot.co.uk/2010/04/powershell-problem-with-comma-character.html]
I'll close this ticket now, hopefully it will help someone in the future!
> Unable to pass multiple "--gen" options to the thrift compiler
> --------------------------------------------------------------
>
> Key: THRIFT-2146
> URL: https://issues.apache.org/jira/browse/THRIFT-2146
> Project: Thrift
> Issue Type: Bug
> Components: C++ - Compiler
> Affects Versions: 0.9.1
> Environment: Windows
> Reporter: Chris Stylianou
> Labels: c++, compiler, thrift
>
> I'm trying to run the following command:
> {code} thrift --gen cpp:include_prefix,pure_enums Interface.thrift {code}
> However, this fails with the error:
> {code} Unrecognized option: pure_enums {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira