Looking into Apache Common CLI

preview_player
Показать описание
I write a lot of small java applications and need a good command line interpreter. Apache Common CLI helps me keep track of options and arguments. Apache have a lot of great tools in their tool chain and even if some of them are common they have a great track record of usability.

Unlock unlimited opportunities with 50% off your first month of Coursera Plus

Get on the fast track to a career in cybersecurity. In this certificate program, you'll learn in-demand skills, and get AI training from Google experts. Learn at your own pace, no degree or experience required.

Join the channel to get access to more perks:

Or visit my blog at:

Outro music: Sanaas Scylla

#xml #xslt #java
Рекомендации по теме
Комментарии
Автор

Thanks buddy, this was super helpful!

greatjobbuddy
Автор

I just have to write something down here about CLI, java (eventhough I do not use it) and Apache of course. Thanks a lot.

БажанКозаченко
Автор

At work we have used the "args4j" library for command-line parsing, which has some nice and not-so-nice features. It uses annotations on the class data variables to define the argument properties. You can implement a custom parser to take the text input and convert it to your custom data format... but I find it awkward to go back and read the options/parameters that have been defined, because they're not all together in a single block, like the Option lines in your code.

I have also done manual command line parsing, which is always error-prone :)

I'll have to give the Apache library a try sometime; I didn't even know about it before your video. I had thought that perhaps args4j was the only option.

aaronperl
Автор

Thanks dan, apache libs are very valuable i appreciate you let us enter in fun way

Talaria.School
Автор

Is CommandLine only used for Linux, it keeps changing windows into Linux paths

tonycavanagh
Автор

Hi, what email can I send you a business proposal to?

deniss.