Argparse In Python3.2.3 On Windows 7 Does Not Seem To Parse
since I got python on windows running, here is the next problem I encountered with argparse, and for which I did not see a solution. I uses optparse before. Here is my code: import
Solution 1:
The problem seem to be caused by Windows, and how the code is tried to be executed on the command line. In the given example the test script was called directly on the command line, without python
before the code, as suggested in this answer.
If the code is executed like
python code.py
the expected behavior is seen, and the arguments are correctly parsed in the code.
So either the setup of the Windows system is stil incomplete, or the suggestion in the above link is incomplete.
Post a Comment for "Argparse In Python3.2.3 On Windows 7 Does Not Seem To Parse"