Use of validate_filepath_arg and validate_filename_arg #65
Replies: 1 comment
-
The answer for me is to validate the filename by extracting it from the given file (= path + filename). Next, validate the filename and then the filepath. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. In the argparse_validate example it shows:
My CLI wants:
parser.add_argument("--filepath", type=validate_filepath_arg)
where the filepath includes both the filepath and the filename.
Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions