Commit 3f58831
authored
printEnvVariablesToFile.py overwrites itself if invoked without arguments (#24487)
I saw the command in my terminal when launching the editor, was curious
to see what it did, so I ran it again without arguments, expecting to
get a `--help`-like message, instead it ended up overwriting itself.
This change changes the script's default behavior (default being the
invocation without arguments) from overwriting itself to throwing an
exception about a missing output file argument.1 parent dba0a4c commit 3f58831
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
0 commit comments