Skip to content
Sign upLog in
← Back to Community

How do I run a program on repl.it by specifying command line arguments? eg. python program.py --arg1

Profile icon
BharadwajIyer

How do I run a program on repl.it by specifying command line arguments? eg. python program.py --arg1 --arg2 --arg3

Voters
Profile icon
BharadwajIyer
Comments
hotnewtop
Profile icon
Vandesm14

Just run the command in the terminal. Or, you could create a .replit file and add this to it:

language="python" run="python program.py --arg1 --arg2 --arg3"