---
title: "Error: Failed to parse command line arguments"
description: "Fix the 'Failed to parse command line arguments' error when deploying, often from a bad /deploydir path."
product: "Alchemy"
edition: "Public"
type: "workflow"
url: "https://docs.cloudhouse.com/public/troubleshooting-packages/deployment/error-failed-to-parse-command-arguments/"
---
# Error: Failed to parse command line arguments

Problem: An application deployment fails and the following parse error is displayed, "Failed to parse command line arguments: Option '/deploydir' parse error: could not parse '<Deployment Path>" /deploytype machine' to 'System.String'".

Applies to: `Alchemy`

Cause: Check if the value of `/deploydir` argument ends with "`\`", `Cloudhouse.Container.Deployment.exe /deploydir "C:\programdata\containerocto\" /deploytype machine`

This is by design as Windows treats a backslash '`\`' before the last quote " (in the above example) as an escape character.

**Solution**: To fix this issue, complete the following steps:

1. Remove the backslash from the `/deploydir` argument:
    `Cloudhouse.Container.Deployment.exe /deploydir "C:\programdata\containerocto" /deploytype machine`.
2. Escape the last backslash in the `/deploydir` argument:
    `Cloudhouse.Container.Deployment.exe /deploydir "C:\programdata\containerocto\\" /deploytype machine`.
