summaryrefslogtreecommitdiff
path: root/py/objnamedtuple.c
diff options
context:
space:
mode:
authorstijn <stijn@ignitron.net>2021-04-06 20:40:31 +0200
committerDamien George <damien@micropython.org>2021-04-07 12:41:25 +1000
commita66286f3a0f24985cae2648102e51de64b8a1871 (patch)
tree79e0bf738d9a669d917dcd5bee5aadbe2d214ee3 /py/objnamedtuple.c
parent4f53f462ca9dbec45771e06d2d1a84b61e01e61a (diff)
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.
Diffstat (limited to 'py/objnamedtuple.c')
0 files changed, 0 insertions, 0 deletions