atom-community / atom-community/atom-script
Program Arguments with quotes are not passed to the script correctly
Open
- Dominant language
- JavaScript
- Stars
- 730
- Forks
- 264
- PR merge metrics
- No merged PRs in 30d
Description
When attempting to pass the option in through the Script options view ("program arguments") as follows:
```
-c "reboot -f"
```
I receive the error below. This same error occurs when attempting to pass in single quotes.
```
error: unrecognized arguments: -f"
```
My script is using Python's `argparse` library like so:
```
parser.add_argument("-c", "--command", type=str, help="action")
```
From the command line the script works as expected:
```
python3.4 script.py -c 'reboot -f'
```
Contributor guide
Assessment
This issue has not been assessed yet.