[Fix] revise --option to --options #1140

This commit is contained in:
Rockey 2021-12-15 15:24:08 +08:00 committed by GitHub
parent bc4835d1e9
commit 4e9a95d4f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -207,7 +207,7 @@ def parse_args() -> argparse.Namespace:
if 'LOCAL_RANK' not in os.environ:
os.environ['LOCAL_RANK'] = str(args.local_rank)
if args.option and args.cfg_options:
if args.options and args.cfg_options:
raise ValueError(
'--options and --cfg-options cannot be both '
'specified, --options is deprecated in favor of --cfg-options. '

View File

@ -35,7 +35,7 @@ def parse_args():
'is allowed.')
args = parser.parse_args()
if args.option and args.cfg_options:
if args.options and args.cfg_options:
raise ValueError(
'--options and --cfg-options cannot be both '
'specified, --options is deprecated in favor of --cfg-options. '

View File

@ -94,7 +94,7 @@ def parse_args():
if 'LOCAL_RANK' not in os.environ:
os.environ['LOCAL_RANK'] = str(args.local_rank)
if args.option and args.cfg_options:
if args.options and args.cfg_options:
raise ValueError(
'--options and --cfg-options cannot be both '
'specified, --options is deprecated in favor of --cfg-options. '

View File

@ -79,7 +79,7 @@ def parse_args():
if 'LOCAL_RANK' not in os.environ:
os.environ['LOCAL_RANK'] = str(args.local_rank)
if args.option and args.cfg_options:
if args.options and args.cfg_options:
raise ValueError(
'--options and --cfg-options cannot be both '
'specified, --options is deprecated in favor of --cfg-options. '