Sublime 2 - Python - Passing command line args

448 Views Asked by At

Is there any way to pass command line arguments to a python script invoked with Ctrl+, f through SublimeREPL? i.e. pass args to something like:

def main():
  if len(sys.argv) != 3:
    print 'usage: ./wordcount.py {--count | --topcount} file'
    sys.exit(1)

if __name__ == '__main__':
  main()

Thanks

0

There are 0 best solutions below