j-maly / CommandLineParser

Command line parser. Declarative arguments support. Rich set of argument types (switches, enums, files, etc...). Mutually exclusive arguments validations.
MIT License
137 stars 30 forks source link

Question on field and row terminators #59

Open TheSaltyKorean opened 6 years ago

TheSaltyKorean commented 6 years ago

Thoughts on the best way to ask the user for field and row terminators? The code I'm giving as examples for my users are in VB.Net and I'd rather convert than parse the different command line options they give

j-maly commented 6 years ago

I'm sorry I don't understand the question.

TheSaltyKorean commented 6 years ago

For example, a user might want to tell the app use /r or /t, but those aren't fabulous ways to pass in an argument. Any recommendations on a better way?

alexandre-lecoq commented 5 years ago

What's the use case exactly ? And would that work ?

TheSaltyKorean commented 5 years ago

I'm asking the user for field and row terminators. Not really sure what the best way to ask the end user to give me what they want. This is often the case in ETL tools.

alexandre-lecoq commented 5 years ago

Well, that doesn't sound like a question directly related to this package. But you could have the user pass --fieldseparator "," --newline "\r\n" no ?