Passing a list of GUID[ToSTring()] at the command line #1
Unanswered
houstonhaynes
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm getting a "TypeConverter cannot convert from System.String" error when trying to pass in a GUID at the command line - either as a Guid or as String.
By contrast - when I don't pass in a value and the Guid is generated internally and everything happens without error.
[And of course if I "ToString()" and pass it through as string all is well as well.]
As you might catch in context, I'm hoping to pass in a list of GUID or string at the command line. Does this call for a parser? I somewhat had the sense that this should be handled, either as CommandArgument or CommandOption. Any insight? Thanks!
Fauxlemetry
Oh - and here are some sample commands - first, as CommandArgument
dotnet run g 61b2bf72-ec2e-450b-a454-d2e11591c0c6 --volume=2 --rewind=1then as CommandOption
dotnet run g --customers 61b2bf72-ec2e-450b-a454-d2e11591c0c6 --volume=2 --rewind=1Beta Was this translation helpful? Give feedback.
All reactions