~percona-toolkit-dev/percona-toolkit/pxc-autodiscover-nodes

« back to all changes in this revision

Viewing changes to lib/bash/parse_options.sh

Merge pt-ms-pt-stalk-standard-mysql-options.

Show diffs side-by-side

added added

removed removed

Lines of Context:
398
398
 
399
399
      if [ "$next_opt_is_val" ]; then
400
400
         next_opt_is_val=""
401
 
         if [ $# -eq 0 ] || [ $(expr "$opt" : "-") -eq 1 ]; then
 
401
         if [ $# -eq 0 ] || [ $(expr "$opt" : "\-") -eq 1 ]; then
402
402
            option_error "$real_opt requires a $required_arg argument"
403
403
            continue
404
404
         fi
406
406
         opt_is_ok=1
407
407
      else
408
408
         # If option does not begin with a hyphen (-), it's a filename, etc.
409
 
         if [ $(expr "$opt" : "-") -eq 0 ]; then
 
409
         if [ $(expr "$opt" : "\-") -eq 0 ]; then
410
410
            if [ -z "$ARGV" ]; then
411
411
               ARGV="$opt"
412
412
            else