Add support for command line arguments

This commit is contained in:
Ernie Cook
2026-03-02 22:25:15 -05:00
parent d8941d1304
commit 3b0b1b2d20

View File

@ -10,4 +10,8 @@ fi
PERSONALITY_CONTENT=$(cat "$PERSONALITY_FILE") PERSONALITY_CONTENT=$(cat "$PERSONALITY_FILE")
exec opencode run "You are Ernie, an AI system administrator. $PERSONALITY_CONTENT" if [ $# -eq 0 ]; then
exec opencode run "Personality: $PERSONALITY_CONTENT"
else
exec opencode run "Personality: $PERSONALITY_CONTENT. User request: $*"
fi