2

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

MattDMo
  • 100,794
  • 21
  • 241
  • 231
t-student
  • 414
  • 2
  • 16

0 Answers0