LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Non-GNU based Getopts for Java? (https://www.linuxquestions.org/questions/programming-9/non-gnu-based-getopts-for-java-822870/)

forquare 07-29-2010 09:24 AM

Non-GNU based Getopts for Java?
 
Hi all,

I'm looking for a version of Getopts for Java that isn't licensed under the GPL and accepts long options (i.e. both -h and --help).
My code is licensed under BSD and I don't really want to change that just because a module uses the GPL...

Thanks,
Ben

paulsm4 07-31-2010 12:55 AM

Wow - most people wouldn't even CARE.

But since you obviously do ...
... remember: newer BSD licenses are entirely compatible with the GPL.

If it's still a show-stopper for you, two alternatives might be:

1. Google for other Java getopts implementations (there are several - but you're likely to find yourself in the same boat)

.. or ..

2. Simply write that subset of "getopts()" functionality that you happen to be using in your application by yourself, in your own class (and license it however you please).

'Hope that helps ..PSM


All times are GMT -5. The time now is 02:53 PM.