gitdagray / csv-to-sql-insert

Provide table data as a CSV (comma-separated values) file and output a SQL insert statement for a table with the same name as the file.
MIT License
99 stars 120 forks source link

Cli handling #16

Open kingmathers92 opened 9 months ago

kingmathers92 commented 9 months ago

Issue #9

The integration of yargs also provides a clear interface for specifying and documenting expected command-line options, making your script more user-friendly.

Using yargs makes your code more readable and maintainable. It separates the concerns of option parsing from the core logic of your script. Additionally, it allows users to easily understand and provide command-line options when running the script.

command: node index.js --saveFileAs output --csvFileName data

gitdagray commented 9 months ago

I think this will be a nice addition. Things are moving fast after sharing this today and some other updates have been merged. Can you pull the latest and add in your additions (now using TS)? Thank you for the suggestion and for contributing the changes!