This website requires JavaScript.
Explore
Help
Sign In
djsundog
/
circuitpython
Watch
1
Star
0
Fork
0
You've already forked circuitpython
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
965caa0302
circuitpython
/
tests
/
cmdline
/
repl_inspect.py
3 lines
83 B
Python
Raw
Normal View
History
Unescape
Escape
unix: Improve command line argument processing. Per CPython everything which comes after the command, module or file argument is not an option for the interpreter itself. Hence the processing of options should stop when encountering those, and the remainder be passed as sys.argv. Note the latter was already the case for a module or file but not for a command. This fixes issues like 'micropython myfile.py -h' showing the help and exiting instead of passing '-h' as sys.argv[1], likewise for '-X <something>' being treated as a special option no matter where it occurs on the command line.
2021-04-06 14:40:31 -04:00
# cmdline: -i -c print("test")
tests/cmdline/repl_inspect: Add new test for -i option. This adds a new test to verify that the inspect (-i) command line option works.
2020-01-15 13:37:02 -05:00
# -c option combined with -i option results in REPL
Reference in New Issue
Copy Permalink