Android Studio: allow to pass shell arguments

Pass parameters to Android Studio shell script.
This way Android Studio can be used as git diff/merge tool.
For example
```
[difftool "androidstudio"]
        cmd = android-studio nosplash diff $LOCAL $REMOTE 2>/dev/null
        trustExitCode = true

[mergetool "androidstudio"]
        cmd = android-studio nosplash merge $LOCAL $REMOTE $BASE $MERGED 2>/dev/null
        trustExitCode = true
```

See https://www.jetbrains.com/help/idea/working-with-the-ide-features-from-command-line.html#arguments
This commit is contained in:
Andrei Lapshin 2022-05-28 14:15:48 +03:00
parent d5cc1e8659
commit 0e3b22768d

View File

@ -196,7 +196,7 @@ in runCommand
{
startScript = ''
#!${bash}/bin/bash
${fhsEnv}/bin/${drvName}-fhs-env ${androidStudio}/bin/studio.sh
${fhsEnv}/bin/${drvName}-fhs-env ${androidStudio}/bin/studio.sh "$@"
'';
preferLocalBuild = true;
allowSubstitutes = false;