Return-Path: X-Original-To: apmail-corinthia-dev-archive@minotaur.apache.org Delivered-To: apmail-corinthia-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BBEC7CE4F for ; Mon, 19 Jan 2015 02:02:11 +0000 (UTC) Received: (qmail 99773 invoked by uid 500); 19 Jan 2015 02:02:13 -0000 Delivered-To: apmail-corinthia-dev-archive@corinthia.apache.org Received: (qmail 99747 invoked by uid 500); 19 Jan 2015 02:02:13 -0000 Mailing-List: contact dev-help@corinthia.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@corinthia.incubator.apache.org Delivered-To: mailing list dev@corinthia.incubator.apache.org Received: (qmail 99736 invoked by uid 99); 19 Jan 2015 02:02:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jan 2015 02:02:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 19 Jan 2015 02:02:12 +0000 Received: (qmail 98725 invoked by uid 99); 19 Jan 2015 02:00:37 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jan 2015 02:00:37 +0000 Date: Mon, 19 Jan 2015 02:00:37 +0000 (UTC) From: "Dennis E. Hamilton (JIRA)" To: dev@corinthia.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (COR-26) Recommend standard getopt_longs for the utilities MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COR-26?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14282086#comment-14282086 ] Dennis E. Hamilton commented on COR-26: --------------------------------------- The link is to the last post in the thread. I think it is clear that the Commons CLI is a Java library, http://commons.apache.org/proper/commons-cli/ The APR apr_getopt functions are in C and described at the link http://apr.apache.org/docs/apr/1.5/group__apr__getopt.html and the build instructions include CMake. It is not clear what they do about using current VC compilers, etc. Much experimentation is needed to see what the desired approach should be. It will help to have an idea of what command-lines we want getopt for, as well. > Recommend standard getopt_longs for the utilities > ------------------------------------------------- > > Key: COR-26 > URL: https://issues.apache.org/jira/browse/COR-26 > 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. http://en.wikipedia.org/wiki/Getopt -- This message was sent by Atlassian JIRA (v6.3.4#6332)