Skip to content

Commit

Permalink
feat!(run): call platform api to list targets (#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
erisu committed May 9, 2023
1 parent b2f0237 commit 32a2025
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,7 @@ function cli (inputArgs) {
// Pass nopt-parsed args to PlatformApi through opts.options
opts.options = args;
opts.options.argv = unparsedArgs;
if (cmd === 'run' && args.list && cordova.targets) {
return cordova.targets.call(null, opts);
}

return cordova[cmd].call(null, opts);
} else if (cmd === 'requirements') {
// All options without dashes are assumed to be platform names
Expand Down

0 comments on commit 32a2025

Please sign in to comment.