I am not sure what I should be looking for with this question.
Say I've created a script in Python to parse command-line arguments. What should I do to make it executable from the command-line in the same manner as other *NIX tools are?
Ex: Instead of:
$ python program -s 2000
or
$ ./program -s 2000
I'd like to just be able to do the following:
$ program -s 2000
Ideally I'd like this to run on Windows and OSX. Any info on where I'd look to accomplish this? I have tried the shebang, which allows me to execute the script as per the second example, but I cannot find much information on allowing it to execute without specifying the current directory. Thanks!