Bug 248201

Summary: yast command line help
Product: [openSUSE] openSUSE 10.3 Reporter: Klara Cihlarova <cihlarov>
Component: YaST2Assignee: Jiří Suchomel <jsuchome>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: jsuchome
Version: Alpha 0plus   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Klara Cihlarova 2007-02-23 12:42:52 UTC
In the yast command line help is not information how to set option value (basic syntax). For example in "yast users add help"

YaST Configuration Module users
--------------------------------

Command 'add'
    Add new user

    Options:
        username       [string]  Login name of the user
        uid            [string]  UID of the user
        ....

But the information about correct syntax is missing and error message is not useful too. It should be (or something like this):

YaST Configuration Module users
--------------------------------

Command 'add'
    Add new user

Basic Syntax:
    yast2 users add <options>=<values>
    
    Options:
        username       [string]  Login name of the user
        uid            [string]  UID of the user
        ....
Comment 1 Jiří Suchomel 2007-02-27 08:05:37 UTC
Ladislav, I think this should be general part of command line interface help, nothing specific to yast2-users.
Comment 4 Jiří Suchomel 2007-03-01 15:19:40 UTC
Rebecca, could you help me with wording? 
I propose printing one extra sentence for each "yast2 <module> help <command>", when command has some options of string type; something like "Options of type [string] has to be written in the form 'option=value'."

The output would look like this:

jsuchome@baggins:~> yast2 kerberos configure help

YaST Configuration Module kerberos
-----------------------------------

Command 'configure'
    Change the global settings of Kerberos client

    Options:
        kdc          [string]  The Key Distribution Center (KDC) address
        domain       [string]  Default domain
        realm        [string]  Default realm
        minimum_uid  [string]  Minimum UID used for Kerberos authentication
        clockskew    [string]  Clock skew (in seconds)
        help                   Print the help for this command
        verbose                Show progress information
    Options of type [string] has to be written in the form 'option=value'.

Comment 5 Rebecca Walter 2007-03-01 15:22:54 UTC
Options of the [string] type must be written in the form 'option=value'.
Comment 6 Jiří Suchomel 2007-03-01 15:23:48 UTC
*** Bug 136419 has been marked as a duplicate of this bug. ***
Comment 7 Jiří Suchomel 2007-03-01 15:46:53 UTC
Fixed in svn trunk.