Menu

#4724 [fvt]2.10:runcmdinstaller should add -h options and man page

2.10
closed
yangsong
None
unknown
5
2015-07-14
2015-07-02
junxiaw
No

1.download the lastest build
2.[root@c910f02c01p13 ~]# runcmdinstaller
Usage:

runcmdinstaller <node> ""</node>

make sure all the commands are quoted by ""

[root@c910f02c01p13 ~]#
[root@c910f02c01p13 ~]# runcmdinstaller -h
awk: option requires an argument -- h
Usage: awk [POSIX or GNU style options] -f progfile [--] file ...
Usage: awk [POSIX or GNU style options] [--] 'program' file ...
POSIX options: GNU long options: (standard)
-f progfile --file=progfile
-F fs --field-separator=fs
-v var=val --assign=var=val
Short options: GNU long options: (extensions)
-b --characters-as-bytes
-c --traditional
-C --copyright
-d[file] --dump-variables[=file]
-e 'program-text' --source='program-text'
-E file --exec=file
-g --gen-pot
-h --help
-L [fatal] --lint[=fatal]
-n --non-decimal-data
-N --use-lc-numeric
-O --optimize
-p[file] --profile[=file]
-P --posix
-r --re-interval
-S --sandbox
-t --lint-old
-V --version

To report bugs, see node Bugs' ingawk.info', which is
section `Reporting Problems and Bugs' in the printed version.

gawk is a pattern scanning and processing language.
By default it reads standard input and writes standard output.

Examples:
gawk '{ sum += $1 }; END { print sum }' file
gawk -F: '{ print $1 }' /etc/passwd
----------------> so -h option should be added here

Discussion

  • XiaoPeng Wang

    XiaoPeng Wang - 2015-07-03

    We need to add a parameter checking part in the code. And also need to add a usage message for incorrect parameters or '-h'.

    Since this is just a tool for debugging, do not think it needs a man page.

     
  • yangsong

    yangsong - 2015-07-08
    • status: open --> pending
     
  • yangsong

    yangsong - 2015-07-08

    commit fd62dadd02773e8f026bebe7154a9e73b6161dbc
    Author: immarvin yangsbj@cn.ibm.com
    Date: Tue Jul 7 22:56:31 2015 -0400

    fix defect 4727 [fvt]runcmdinstaller could not work on sles12; fix defect 4726 [fvt]2.10:ubruncmdinstaller c
    
     
  • yangsong

    yangsong - 2015-07-08

    commit fd62dadd02773e8f026bebe7154a9e73b6161dbc
    Author: immarvin yangsbj@cn.ibm.com
    Date: Tue Jul 7 22:56:31 2015 -0400

    fix defect 4727 [fvt]runcmdinstaller could not work on sles12; fix defect 4726 [fvt]2.10:ubruncmdinstaller c
    
     
  • yangsong

    yangsong - 2015-07-08
     
  • junxiaw

    junxiaw - 2015-07-14
    • status: pending --> closed