corinthia-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis E. Hamilton (JIRA)" <>
Subject [jira] [Commented] (COR-26) Recommend standard getopt_longs for the utilities
Date Mon, 19 Jan 2015 16:54:34 GMT


Dennis E. Hamilton commented on COR-26:

The TL;DR: I want to spend a bit more time in analysis rather than just diving in.  I see
no reason to hurry.  I anticipate there being many more utilities and tools as we dig into
handling of various formats at scale.

More thoughts:

apr_getopt_long (the desired one) requires an initialization also.  It seems to be pretty
low level, so there is a fair amount of intricacy to using it as well as I can tell.

I'm not going to just grab it off the shelf until I understand how I would use it more than
once and how I would maintain that use.

Also, what APR does is build a library, static or dynamic, and that is then used.  The static
one would, ideally, only deliver the necessary code and what it depends on for a given platform.

If we extract just the source code that we need, I have no idea how involved that will be,
and what the platform dependencies might also involve.  The thing about APR is that it builds
for different platforms and has the same API across all of them.

> Recommend standard getopt_longs for the utilities
> -------------------------------------------------
>                 Key: COR-26
>                 URL:
>             Project: Corinthia
>          Issue Type: Improvement
>          Components: Consumers - dftest
>            Reporter: Dennis E. Hamilton
>            Assignee: Dennis E. Hamilton
>             Fix For: 0.5
> It is recommended that the command-line utilities provided by Corinthia use a common
getopt model with single-letter options, verbose word options and common shared options (--version,
--help, etc.).  stdin, stdout, and stderr should be redirectable (via the shell) and the utilities
should work with pipes (with appropriate encoding caveats).
> The same flavors can be used for all platforms, with filenames given in platform-specific
form (and "..." where needed) but parameters and options the same across platforms.
> The GNU getopt_long approach is widely-used.

This message was sent by Atlassian JIRA

View raw message