Update --extenions MO doc (#10782)

* update mo doc help

* Apply suggestions from code review

Co-authored-by: Anastasiya Ageeva <anastasiya.ageeva@intel.com>

* Update tools/mo/openvino/tools/mo/utils/cli_parser.py

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

Co-authored-by: Anastasiya Ageeva <anastasiya.ageeva@intel.com>
Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>
This commit is contained in:
Mateusz Bencer 2022-03-04 13:47:54 +01:00 committed by GitHub
parent 28889c4833
commit 93320f4fd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -402,9 +402,11 @@ def get_common_cli_parser(parser: argparse.ArgumentParser = None):
action=DeprecatedStoreTrue, default=False)
# we use CanonicalizeDirCheckExistenceAction instead of readable_dirs to handle empty strings
common_group.add_argument("--extensions",
help="Directory or a comma separated list of directories with extensions. To disable all "
"extensions including those that are placed at the default location, pass an empty "
"string.",
help="Paths or a comma-separated list of paths to libraries (.so or .dll) "
"with extensions. For the legacy MO path (if `--use_legacy_frontend` is used), "
"a directory or a comma-separated list of directories with extensions are supported. "
"To disable all extensions including those that are placed at the default location, "
"pass an empty string.",
default=import_extensions.default_path(),
action=CanonicalizePathCheckExistenceAction,
type=readable_dirs_or_files_or_empty)