execute a remote python script, locally with additional arguments
Question: I have a python script that resides on a remote server, under version control,
and I'd like to execute it from my local shell.

I know that `curl https://remote.path/script.py | python` will work ([as confirmed here)](http://stackoverflow.com/questions/12016134/how-to-execute-a-remote-page) when there are no additional parameters. 

The problem is, I can't figure out how to pass in additional command line
arguments, e.g. `python script.py arg1 arg2 arg3`?

_I recognize this is may not be the most secure practice, but the script is
pretty benign._


Answer: `man python` would have answered your question:

    
    
       python [ -B ] [ -d ] [ -E ] [ -h ] [ -i ] [ -m module-name ]
              [ -O ] [ -OO ] [ -R ] [ -Q argument ] [ -s ] [ -S ] [ -t ] [  -u
       ]
              [ -v ] [ -V ] [ -W argument ] [ -x ] [ -3 ] [ -?  ]
              [ -c command | script | - ] [ arguments ]
    

Say:

    
    
    curl https://remote.path/script.py | python - arg1 arg2 arg3
    

Example:

    
    
    $ cat s
    import sys
    print  sys.argv[1:]
    $ cat s | python - arg1 arg2 arg3
    ['arg1', 'arg2', 'arg3']
    

