Return-Path: X-Original-To: apmail-groovy-users-archive@minotaur.apache.org Delivered-To: apmail-groovy-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0FAF1183C9 for ; Tue, 2 Feb 2016 19:42:38 +0000 (UTC) Received: (qmail 47740 invoked by uid 500); 2 Feb 2016 19:42:31 -0000 Delivered-To: apmail-groovy-users-archive@groovy.apache.org Received: (qmail 47714 invoked by uid 500); 2 Feb 2016 19:42:31 -0000 Mailing-List: contact users-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@groovy.apache.org Delivered-To: mailing list users@groovy.apache.org Received: (qmail 47607 invoked by uid 99); 2 Feb 2016 19:42:31 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2016 19:42:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 200251A02C9 for ; Tue, 2 Feb 2016 19:42:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.121 X-Spam-Level: X-Spam-Status: No, score=-0.121 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id lfEYBsqkwDnS for ; Tue, 2 Feb 2016 19:42:30 +0000 (UTC) Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 3D197429E2 for ; Tue, 2 Feb 2016 19:42:30 +0000 (UTC) Received: by mail-pa0-f52.google.com with SMTP id yy13so103917596pab.3 for ; Tue, 02 Feb 2016 11:42:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:from:subject:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=XIRtYc0ugQk/hPgI3Uis/YhiYVDu0OUwebxAc1a2jQ0=; b=uFE8VXjzacaRz+R2z3BjKWygkY0LuSosXTtDh+vRQsU+qYzdhRkYaOFvS53exJL2Rm 65HQvny7PgWe1eJ5KG02xuzPnTzLNnZK+byb+4bENjDuQ8SDujzPTKnIlDj03x+fu+2u UWQszK7JdxFaKOoFUSz4M9NM8dM3pnEhTc18p7oCyYf28YtWBau22Fd4znWvb2fEDh1D bvfAPqoflHxVj9OIitB2imckAD1+b5L5687U6ElYI/OKzeIY/lHO0Fp125mNGw20DCdE uzL242+Ra5M0xe8H0MxfT7sna5GK5Yg+vFJTXoVYgJlD5RHKFncZTuWG30lgtLBW2Rkb EIeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-type:content-transfer-encoding; bh=XIRtYc0ugQk/hPgI3Uis/YhiYVDu0OUwebxAc1a2jQ0=; b=mY0ehPV9dsyvOLahCjl7827+nB9pOSQE+dBxLL/3qaI2COS3zq7j7KdTnN/fa4XwdZ KeE9j8qzqwNChNe/HSCvpoKg9dTmfklxo7wnDcqPpwn4g+nuA1vxCPYL2yVoU+1MQ9p0 R3EC1loM8jDmHNSNKjQHiP/IjYWMCtdZmll3Gl25MIxZBxeM7VQBBNZIEI9DaGMr+QLo NqYVzKXw8IQsZSCuTtfs4uDorggpvgbA+Bse6tQXnrJWgpLMcKhz7yviQErKAkxyYkUO Vy9wzaX7Q23qs6tdy08ZCHSmvSnJh3LA+L3o1EXeWPF684szWhajGckPP1gbDCobb7Bn fXNg== X-Gm-Message-State: AG10YOR4WcsazzmLL/mleJoO0leWw946nZDoQMT3V5tsRPQheLDn+OICExRNFFefF0q9AA== X-Received: by 10.66.191.195 with SMTP id ha3mr50430877pac.58.1454442149543; Tue, 02 Feb 2016 11:42:29 -0800 (PST) Received: from localhost.localdomain (ip-64-134-138-117.public.wayport.net. [64.134.138.117]) by smtp.gmail.com with ESMTPSA id qj8sm4383491pac.40.2016.02.02.11.42.28 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 02 Feb 2016 11:42:28 -0800 (PST) To: users@groovy.apache.org From: "David M. Karr" Subject: Example of CliBuilder with "optionalArg: true"? Message-ID: <56B106A3.70803@gmail.com> Date: Tue, 2 Feb 2016 11:42:27 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Because someone asked me a question about it, I was looking at CliBuilder, for a scenario where "optionalArg" is true, and to get the value of the option, or detect that it's not present. I've looked at the groovydoc, and CliBuilderTest, but it's not clear to me how this works.