ahmadawais / corona-cli

🦠 Track the Coronavirus disease (COVID-19) in the command line. Worldwide for all countries, for one country, and the US States. Fast response time (< 100ms). https://x.com/MrAhmadAwais
https://NodeCLI.com
MIT License
1.85k stars 191 forks source link

NEW: Add omit column feature #46

Open Inukares opened 4 years ago

Inukares commented 4 years ago

Closes #47


First of all, I'd like to say I'm extremely happy to participate in this cool project, great idea @ahmadawais!

This pull request enables feature to omit whole column(s) from output, separated by _.

node index.js --omit=deaths_deaths-today_per-milion
Zrzut ekranu 2020-03-28 o 17 31 16

Wrong keys are simply ignored.

node index.js --o=wrongKeyNothingHappens_deaths
Zrzut ekranu 2020-03-28 o 17 34 56
surgeharb commented 4 years ago

It is a good idea to use "comma" separated list as it has common use in cli list parameters Most of the users will be familiar with this syntax and not to confuse with the hyphens node index.js --omit=deaths,deaths-today,per-milion