Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9776510B5D for ; Wed, 26 Feb 2014 10:17:20 +0000 (UTC) Received: (qmail 49144 invoked by uid 500); 26 Feb 2014 10:17:20 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 49120 invoked by uid 500); 26 Feb 2014 10:17:19 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 49110 invoked by uid 99); 26 Feb 2014 10:17:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Feb 2014 10:17:19 +0000 Date: Wed, 26 Feb 2014 10:17:19 +0000 (UTC) From: "Christian Schneider (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (KARAF-2795) @Option annotation class missing documentation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-2795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Schneider reassigned KARAF-2795: ------------------------------------------ Assignee: Christian Schneider > @Option annotation class missing documentation > ---------------------------------------------- > > Key: KARAF-2795 > URL: https://issues.apache.org/jira/browse/KARAF-2795 > Project: Karaf > Issue Type: Documentation > Affects Versions: 3.0.0 > Reporter: Amichai Rothman > Assignee: Christian Schneider > Priority: Minor > > The @Option annotation used in defining custom shell commands is missing javadocs describing its behavior. For one, its options have no explanation. Further, its effect on fields of different types is undocumented: when applied to a boolean field, it is treated as a switch with no value (e.g. --verbose) and the field is set according to whether the switch is specified or not, but when applied to a field of any other type it requires a value (e.g. --user username), and the command fails if a value is not provided. The field in this case receives the value converted to the field type (though this is typically just an unconverted String). > All of this should be documented in the Option class javadoc so that it can be used properly. -- This message was sent by Atlassian JIRA (v6.1.5#6160)