summaryrefslogtreecommitdiff
path: root/contrib/msi/podman.bat
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-09-20 05:43:24 +0200
committerGitHub <noreply@github.com>2019-09-20 05:43:24 +0200
commite155162e4506d14b2cd77f46bc456c7cce71f125 (patch)
tree8f8568b1015f81cb5b9277d55820aaa911a40d93 /contrib/msi/podman.bat
parentc38844f5a9abedd1b9bce0641ee6f1909377a5d7 (diff)
parent96bcf8cecc92c70cdb86ee288eb57795ef6395e7 (diff)
downloadpodman-e155162e4506d14b2cd77f46bc456c7cce71f125.tar.gz
podman-e155162e4506d14b2cd77f46bc456c7cce71f125.tar.bz2
podman-e155162e4506d14b2cd77f46bc456c7cce71f125.zip
Merge pull request #4042 from jwhonce/wip/msi
Support podman-remote help on windows
Diffstat (limited to 'contrib/msi/podman.bat')
-rw-r--r--contrib/msi/podman.bat25
1 files changed, 25 insertions, 0 deletions
diff --git a/contrib/msi/podman.bat b/contrib/msi/podman.bat
index 091c1c4c4..e0c7e1137 100644
--- a/contrib/msi/podman.bat
+++ b/contrib/msi/podman.bat
@@ -3,6 +3,14 @@ setlocal enableextensions
title Podman
+if "%1" EQU "" (
+ goto run_help
+)
+
+if "%1" EQU "/?" (
+ goto run_help
+)
+
:: If remote-host is given on command line -- use it
setlocal enabledelayedexpansion
for %%a in (%*) do (
@@ -39,5 +47,22 @@ set /p user="Please enter the remote user name: "
:run_podman
endlocal
podman-remote-windows.exe %*
+goto end
+
+:run_help
+set run=start "Podman Help" /D "%~dp0" /B
+
+if not "%3" == "" (
+ %run% "podman-%2-%3.html
+ goto end
+)
+
+if not "%2" == "" (
+ %run% "podman-%2.html
+ goto end
+)
+
+%run% "%podman-remote.html"
+goto end
:End