If you have a python program that uses the
argparse module to parse arguments, and you want the run button to run the program /w those arguments, it won’t work no matter how hard you try.
When I change the run command to run a python file /w arguments, for it to not error when I click run.
usage: main.py [-h] foo main.py: error: the following arguments are required: foo repl process died unexpectedly: exit status 2
Steps to reproduce:
1. Create a new python repl 2. Open main.py and import argparse 3. Now create an argument (preferably a positional one) /w any name 4. Finally add `[parser].parseargs()` for the last line 4. Click the 3 dots and press 'show hidden files` 5. Next find the ".replit" file and click it 6. Go to the run line and edit the command to run use argument 7. RUN
Bug appears at this link:
OS: Chrome OS (Build 107.0.5304.110)
Device: Acer C871 Chromebook