Sometimes you need the input exactly as written - for example if you want to be able to tell the difference between
bar
and b"a"r
.
The following is a workaround/hack to retrieve the full command that executed your script.
Rename your script to add a leading underscore to it. For example, foo
becomes _foo
.