[yast-commit] r65490 - in /trunk/yast2: VERSION package/yast2.changes scripts/yast2
Author: jsrain Date: Thu Sep 1 09:14:57 2011 New Revision: 65490 URL: http://svn.opensuse.org/viewcvs/yast?rev=65490&view=rev Log: enhanced the help command-line parameters (bnc#712271) Modified: trunk/yast2/VERSION trunk/yast2/package/yast2.changes trunk/yast2/scripts/yast2 Modified: trunk/yast2/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/VERSION?rev=65490&r1=65489&r2=65490&view=diff ============================================================================== --- trunk/yast2/VERSION (original) +++ trunk/yast2/VERSION Thu Sep 1 09:14:57 2011 @@ -1 +1 @@ -2.21.14 +2.21.15 Modified: trunk/yast2/package/yast2.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/package/yast2.changes?rev=65490&r1=65489&r2=65490&view=diff ============================================================================== --- trunk/yast2/package/yast2.changes (original) +++ trunk/yast2/package/yast2.changes Thu Sep 1 09:14:57 2011 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Thu Sep 1 06:40:43 UTC 2011 - jsrain@site + +- enhanced the help command-line parameters (bnc#712271) +- 2.21.15 + +------------------------------------------------------------------- Wed Aug 31 16:21:31 CEST 2011 - mvidner@suse.cz - Update Deleted and OriginalDevices in NetworkInterfaces::Write. Modified: trunk/yast2/scripts/yast2 URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/scripts/yast2?rev=65490&r1=65489&r2=65490&view=diff ============================================================================== --- trunk/yast2/scripts/yast2 (original) +++ trunk/yast2/scripts/yast2 Thu Sep 1 09:14:57 2011 @@ -240,7 +240,7 @@ while true ; do case "$1" in - -h|--help) printhelp; exit 0 ;; + -h|--help) if test "$2" = '--' -a -n "$3" ; then CMDLINE_HELP="help" ; else printhelp && exit 0 ; fi ; shift ;; -l|--list) listmodules; exit 0 ;; -g|--geometry) Y2_GEOMETRY="-geometry $2"; shift 2; ;; -i|--install) Y2_INSTALL_PACKAGES=true; shift ;; @@ -275,6 +275,10 @@ # Surround all args by (...). args may contain spaces. # Use -S to avoid YCP escaping (bnc#382883) # But avoid a lone -S (cc-gnome dies, bnc#537470) + +if [ -n "$CMDLINE_HELP" ]; then + set -- $@ help; +fi if [ $# -gt 0 ]; then a=("$@") b=("${a[@]/#/(}") -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
jsrain@svn2.opensuse.org