diff options
author | Devaev Maxim <[email protected]> | 2019-10-24 01:21:34 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-10-24 01:21:34 +0300 |
commit | 97e2d9128c37805ba649807f5f923d1d1e92907f (patch) | |
tree | 36ddaa7318cea97edf55ef994052b14a28e36305 /kvmd/apps/otgmsd/__init__.py | |
parent | 372bf2a4afc93726ad63090202b517c939a183d9 (diff) |
strict file validation
Diffstat (limited to 'kvmd/apps/otgmsd/__init__.py')
-rw-r--r-- | kvmd/apps/otgmsd/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/apps/otgmsd/__init__.py b/kvmd/apps/otgmsd/__init__.py index b22c0dfb..2fe566ba 100644 --- a/kvmd/apps/otgmsd/__init__.py +++ b/kvmd/apps/otgmsd/__init__.py @@ -33,7 +33,7 @@ import psutil from ...validators.basic import valid_bool from ...validators.basic import valid_number -from ...validators.os import valid_abs_path_exists +from ...validators.os import valid_abs_file from .. import init @@ -98,7 +98,7 @@ def main(argv: Optional[List[str]]=None) -> None: metavar="<1|0|yes|no>", help="Set CD-ROM flag") parser.add_argument("--set-rw", default=None, type=valid_bool, metavar="<1|0|yes|no>", help="Set RW flag") - parser.add_argument("--set-image", default=None, type=valid_abs_path_exists, + parser.add_argument("--set-image", default=None, type=valid_abs_file, metavar="<path>", help="Set the image file") parser.add_argument("--eject", action="store_true", help="Eject the image") |