From user-return-31111-archive-asf-public=cust-asf.ponee.io@commons.apache.org Thu Feb 22 06:45:22 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 5FC1018064E for ; Thu, 22 Feb 2018 06:45:22 +0100 (CET) Received: (qmail 51584 invoked by uid 500); 22 Feb 2018 05:45:20 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 51567 invoked by uid 99); 22 Feb 2018 05:45:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Feb 2018 05:45:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 83A81C1C5F for ; Thu, 22 Feb 2018 05:45:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id w2v4DUamOdYd for ; Thu, 22 Feb 2018 05:45:18 +0000 (UTC) Received: from mail-vk0-f54.google.com (mail-vk0-f54.google.com [209.85.213.54]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 2261B5F3B7 for ; Thu, 22 Feb 2018 05:45:18 +0000 (UTC) Received: by mail-vk0-f54.google.com with SMTP id n132so2439764vke.2 for ; Wed, 21 Feb 2018 21:45:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=NG2EtknMF1TDvCHsbND/q7JwpcyogLtLfy7lU493/us=; b=NA0FacvDU8kbRsHn1MBUK1hD8c4DGEd9Q9L56FRRjVVfoIX+rNOdYNOjd2SN/QshRQ DnBSIkW820NiyMfSv8syTnTaTI4E8KvxBuZQqrtL7c2Wefsi0pXSuYfwNgOMGhw0LK9T gsdLTfHY+7AdIqtQZpb4g/5ZFn4laoSg5X/MA/U2iq9IYb7RUXDbGWc+lBpGLgRh1cPw 35oMmt+dvnZCX+g7LjjuBwy7bAfVDOAeMfGf9xYUwxq5OtLhBHfuE2v2IwwjsDQR2Kuh x9rRnFNlsbTH7s6BjiIAcn1cRjB/BFhXLda9b7qOgAP4PDhJctv7J5KohywNAJSMF39g H/wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=NG2EtknMF1TDvCHsbND/q7JwpcyogLtLfy7lU493/us=; b=eTFmoMKSb3ggvMVGMBxfH8LMNMI1iSDoHxdz59kwakp72TKjlR+AE/rxkjRhxKUAsN +uyF3Q2VqA6rIN48S7eK9teLtxkwR0Fo6x47bM/iOc9e22y2sADUfPgkSXoNa73BlHhh 5Jvt2VFPg75dlwhfMhkJgEZ+Lu/iwzx89Cp91rv5Dit7DNmuXbxc+H03/DgdTLhTPbr7 dA5JuT5uJEV/zV4425WbUnYbDaX2BJU8eEas3PEpNmEuQDiVqROJeYkjLHb4HlSTDJHQ LOsDYfdOq101JHDUhGEyB6yisR0EbXFrWN/62bvG5+/ilK6qqP8NBYcMiStd+5lU9p03 eRJQ== X-Gm-Message-State: APf1xPBU1VoiQeuqi9XNOLgPtXXO2ov48GPnd0W4UQqs3Nax/9fQ8MGN m3vX/BoNJP19YOoGMULTA6CyuLuWVSaRqjobWzE= X-Google-Smtp-Source: AH8x224Q+YYfmFYRNjVPIeiqPILAIBfPtsUsYdStISjj+KstVcBB6X+Iuk8qId5ZeoQiqyeH7Jn2fhyMvsx9FRrHJl0= X-Received: by 10.31.75.68 with SMTP id y65mr4163430vka.111.1519278317639; Wed, 21 Feb 2018 21:45:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.4.20 with HTTP; Wed, 21 Feb 2018 21:45:16 -0800 (PST) Received: by 10.176.4.20 with HTTP; Wed, 21 Feb 2018 21:45:16 -0800 (PST) In-Reply-To: References: From: Amey Jadiye Date: Thu, 22 Feb 2018 11:15:16 +0530 Message-ID: Subject: Re: using commons cli options To: Ted Yu , Commons Users List Content-Type: multipart/alternative; boundary="001a114da8b2701d4a0565c68c67" --001a114da8b2701d4a0565c68c67 Content-Type: text/plain; charset="UTF-8" ++ Commons Users On Feb 22, 2018 5:43 AM, "Ted Yu" wrote: Hi, In the following project, we try to use commons cli options: addOptWithArg(REGIONSERVER_COUNT_KEY, "Total number of region servers. Default: '" + DEFAULT_REGIONSERVER_COUNT + "'"); https://github.com/apache/hbase/blob/master/hbase-it/ src/test/java/org/apache/hadoop/hbase/IntegrationTestBackupRestore.java#L295 When the following is entered on the command line: -region_servers 1 parser didn't get the value of 1, resulting in default value being used. We currently use commons cli 1.4 I debugged a little in Eclipse with 1.5 but the result is the same. Did I miss something ? Cheers --001a114da8b2701d4a0565c68c67--