    case "$1" in
      -a | --all)
        all=1
        ;;
      *)
        name="$1"
    esac
    shift
  done

  local vm
  if [ "$all" = "1" ]; then
    while read vm; do
      if is_running "$vm"; then