Author: jsrain Date: Thu Sep 1 09:15:09 2011 New Revision: 65491 URL: http://svn.opensuse.org/viewcvs/yast?rev=65491&view=rev Log: enhanced the help command-line parameters (bnc#712271) Modified: branches/SuSE-Code-11-SP2-Branch/yast2/VERSION branches/SuSE-Code-11-SP2-Branch/yast2/package/yast2.changes branches/SuSE-Code-11-SP2-Branch/yast2/scripts/yast2 Modified: branches/SuSE-Code-11-SP2-Branch/yast2/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/yast2/VERSION?rev=65491&r1=65490&r2=65491&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/yast2/VERSION (original) +++ branches/SuSE-Code-11-SP2-Branch/yast2/VERSION Thu Sep 1 09:15:09 2011 @@ -1 +1 @@ -2.17.108 +2.17.109 Modified: branches/SuSE-Code-11-SP2-Branch/yast2/package/yast2.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/yast2/package/yast2.changes?rev=65491&r1=65490&r2=65491&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/yast2/package/yast2.changes (original) +++ branches/SuSE-Code-11-SP2-Branch/yast2/package/yast2.changes Thu Sep 1 09:15:09 2011 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Thu Sep 1 06:40:43 UTC 2011 - jsrain@site + +- enhanced the help command-line parameters (bnc#712271) +- 2.17.109 + +------------------------------------------------------------------- Fri Aug 26 13:26:32 CEST 2011 - locilka@suse.cz - Fixed handling of FW_SERVICES_ACCEPT_* in SuSEFirewall modules to Modified: branches/SuSE-Code-11-SP2-Branch/yast2/scripts/yast2 URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/yast2/scripts/yast2?rev=65491&r1=65490&r2=65491&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/yast2/scripts/yast2 (original) +++ branches/SuSE-Code-11-SP2-Branch/yast2/scripts/yast2 Thu Sep 1 09:15:09 2011 @@ -220,7 +220,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 ;; @@ -255,6 +255,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