- Nov 28, 2017
- 512
- 637
Hmm,Yes, if any of the folder or file names contain spaces, quotes are required. It's a good idea to use them in any case.
But in your case it seems that you failed to specify a file name for the online file that you're trying to create ("C:/DFD/onlinefile.dat" for example).
C:/DFD looks like a folder name to me.
I added the quotes, added a filename.dat to the end of the onlineFile, it says unrecognized argument still
Command Line : arguments:
offlineFolder "C:\Users\lphuy\AppData\Local\VNE2"
onlineFile "C:/DFD/onlinefile.dat"
usage: dfdtoonline.py [-h] offlineFolder onlineFile
dfdtoonline.py: error: unrecognized arguments: C:\Users\lphuy\AppData\Local\VNE2 onlineFile C:/DFD/onlinefile.dat
Exit code: 2
So I tried to remove the onlinefile.dat name and now it says
Command Line : arguments:
offlineFolder "C:\Users\lphuy\AppData\Local\VNE2"
onlineFile "C:/DFD/"
usage: dfdtoonline.py [-h] offlineFolder onlineFile
dfdtoonline.py: error: unrecognized arguments: C:\Users\lphuy\AppData\Local\VNE2 onlineFile C:/DFD/
Exit code: 2
I colored the text accordingly to what Python gave, so the offlineFolder line seemed fine but it still says unrecognized arguments including both. Any ideas?