Skip to content

Commit 3746c82

Browse files
committed
Ensure that "platformio --help" command works
1 parent af1041b commit 3746c82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pioinstaller/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,11 @@ def check(develop=False, global_=False, auto_upgrade=False, version_spec=None):
166166
"PlatformIO executable not found in `%s`" % penv.get_penv_bin_dir()
167167
)
168168
try:
169-
subprocess.check_output([platformio_exe, "--version"], stderr=subprocess.STDOUT)
169+
subprocess.check_output([platformio_exe, "--help"], stderr=subprocess.STDOUT)
170170
except subprocess.CalledProcessError as e:
171171
error = e.output.decode()
172172
raise exception.InvalidPlatformIOCore(
173-
"Could not run `%s --version`.\nError: %s" % (platformio_exe, str(error))
173+
"Could not run `%s --help`.\nError: %s" % (platformio_exe, str(error))
174174
)
175175

176176
result = {}

0 commit comments

Comments
 (0)