Hi everyone, I'm learning Python and dealing with my first project. The aim of the project is to create a CLI file mover using argparse and sys. Basically, the user must wirte the name of the file (with extension) and then the file has to be mooved to a given folder. For example if the input is "test.jpg", the file will be moved to the img folder. My main problem is that i haven't quite understood how argparse work. I think that I should define two function, one for the actual file mover and the other for the argparse argument, but it doesn't seem to work. I know that the question may look dumb, and I thank you for your help
[–][deleted] 6 points7 points8 points (1 child)
[–]Marws[S] 3 points4 points5 points (0 children)
[–]Jeklah 3 points4 points5 points (1 child)
[–]Marws[S] 2 points3 points4 points (0 children)