mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-09 18:30:16 +00:00
PT-1720 pmp won't error on unknown options
This commit is contained in:
@@ -447,7 +447,6 @@ _parse_command_line() {
|
|||||||
else
|
else
|
||||||
spec=$(grep "^short form:-$opt\$" "$PT_TMPDIR"/po/* | cut -d ':' -f 1)
|
spec=$(grep "^short form:-$opt\$" "$PT_TMPDIR"/po/* | cut -d ':' -f 1)
|
||||||
if [ -z "$spec" ]; then
|
if [ -z "$spec" ]; then
|
||||||
option_error "Unknown option: $real_opt"
|
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@@ -468,7 +468,10 @@ _parse_command_line() {
|
|||||||
else
|
else
|
||||||
spec=$(grep "^short form:-$opt\$" "$PT_TMPDIR"/po/* | cut -d ':' -f 1)
|
spec=$(grep "^short form:-$opt\$" "$PT_TMPDIR"/po/* | cut -d ':' -f 1)
|
||||||
if [ -z "$spec" ]; then
|
if [ -z "$spec" ]; then
|
||||||
option_error "Unknown option: $real_opt"
|
# Not all programs uses the same options and since these options can be stored
|
||||||
|
# in a common config file, we need to skip general options not used by a particular
|
||||||
|
# program
|
||||||
|
# option_error "Unknown option: $real_opt"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user