Cannot pass script args to xpm run #140
Unanswered
AaronFontaine-DojoFive
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi Aaron, Thank you for your perseverance in testing this. You are not missing anything, actions with a single command should accept extra arguments. I checked and it does not, so it must be a bug (#141). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Note: If this is not the correct place for this question, I can move it. I checked out Tapatalk but it says the forum is deprecated in favor of GitHub Discussions and the threads appear locked. There is nothing else posted here, so hopefully this is the correct place.
The synopsis for xpm run is:
xpm run [options...] [<command>] [-- <script args>]
I would like to be able to pass extra optional arguments to the CMake and/or Ninja commands directly from the command line. I have tried everything I can to get
<script args>
to pass through, but no matter what I do I get "error: optional arguments not supported for array of commands"I have tried having the action defined in both the
scripts
and theactions
properties. I have made sure that the elements are not JSON arrays (i.e. no opening or closing square brackets). I have triedxpm run-script
in place ofxpm run
. I'm not understanding how we pass extra parameters to the underlying commands without having all possible permutations spelled out in thepackage.json
.For example, in the Hello World Quick Start template, we have a single
test
command underscripts
. I tried testing with this:Also, the
clean
command of both the Debug and Release configurations is a single command and not an array of commands. This also does not work:What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions