Skip to content
Sign upLog in
← Back to Community

How do I set command line arguments for my REPL

Profile icon
evanxg852000

my python repl is using sys.argv, how do I pass one in order to test ?

Voters
Profile icon
Marianho
Profile icon
gabby7241
Profile icon
CockatielAnimat
Profile icon
TheBotlyNoob
Profile icon
marknewman1
Profile icon
NoorAhmad3
Profile icon
MohiniKumari
Profile icon
leo-ironkey
Profile icon
dstest
Profile icon
mileseu
Comments
hotnewtop
Profile icon
AlephZero

Press Ctrl-Shift-P inside your repl and then "Open Shell".
This will open a normal shell inside your repl directory, where you can run your program as you would on a regular command prompt, with command line arguments.

There might be a better way to do this, but this is the only way I know.

Sorry for the late reply, and keep coding on repl.it!

Profile icon
tejes

It's a shame Ctrl + Shift + P opens private browsing in Firefox.

Profile icon
timmy_i_chen

@tejes
you can also get there with F1

Profile icon
Nefomemes

@timmy_i_chen
It will lower my volume instead.

Profile icon
IshTakkar

@Nefomemes
press it along with the function key on your keyboard

Profile icon
THEDK

@Nefomemes

thats because you have fn lock on SMH