mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-22 01:17:16 +00:00
Signed-off-by: nitishfy <justnitish06@gmail.com> Co-authored-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
16 lines
424 B
Bash
Executable file
16 lines
424 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Ensure we receive the expected flags and values
|
|
while [[ "$#" -gt 0 ]]; do
|
|
case $1 in
|
|
--flag1) FLAG1="$2"; shift ;;
|
|
--flag2) FLAG2="$2"; shift ;;
|
|
--help) echo "Usage: argocd test-plugin --flag1 value1 --flag2 value2"; exit 0 ;;
|
|
*) echo "Unknown argument: $1"; exit 1 ;;
|
|
esac
|
|
shift
|
|
done
|
|
|
|
# Output the parsed flag values
|
|
echo "Flag1: ${FLAG1}"
|
|
echo "Flag2: ${FLAG2}"
|