#!/bin/bash

# Handle some arguments before running the application
# Supported arguments:
# -d|--debug: debug with -Wd arguments
DEBUG='-OO'
PY='/usr/lib/solydxk/system/main.py'
for ARG in $@; do
  case $ARG in
    -d|--debug)
      DEBUG='-Wd'
      ;;
    -n)
      ARGS="$ARGS $ARG"
      ;;
    -a)
      PY='/usr/lib/solydxk/system/adjust.py'
      ;;
  *)
    # Unknown option
  esac
done

python3 ${DEBUG} ${PY} $ARGS
