Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
19

How do I set command line arguments for my REPL

evanxg852000
evanxg852000

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

4 years ago

Voters

Comments

TopNew
2
tejes
tejes

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

4 years ago
3
timmy_i_chen
timmy_i_chen

@tejes
you can also get there with F1

4 years ago
1
Nefomemes
Nefomemes

@timmy_i_chen
It will lower my volume instead.

2 years ago
1
IshTakkar
IshTakkar

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

2 years ago
2
THEDK
THEDK

@Nefomemes

thats because you have fn lock on SMH

2 years ago
11
AlephZero
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!

4 years ago
Load more