can the ksh getopts be used as a library elsewhere ? #903
Replies: 2 comments 8 replies
-
|
I agree getopts is really useful for providing decently formatted help to shell scripts. I do not know whether it could be made available easily as a separate library. personally I would find that useful (I have used very thin ksh wrappers around lua and tcl scripts for the sole purpose of making getopts available ;)). but I would guess that other languages will usually stick to their own established help facilities even where those might be considered inferior (in my limited experience, what I have seen from phython in these terms was not impressive, e.g. ;)). so... |
Beta Was this translation helpful? Give feedback.
-
|
Hey @tungstengmd, the ksh However, it's certainly possible to link third-party programs against libast. Generally those would be C programs, but I suppose it might be possible to use other languages that can link against C interfaces. Linking C programs against libast is not yet very well documented. Do you program in C? If so, I could get you started with a skeleton program; please let me know. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
i really like the korn shell getopts, especially the self documenting capabilities, and i was just wondering if it could be used elsewhere in other languages !
Beta Was this translation helpful? Give feedback.
All reactions