b26
b26

Reputation: 198

Casper CLI Options not handling white spaces on Windows

On Terminal of Mac, if I enter in the command

casperjs test.js --name="Bashir Osman"

it will return

{
    "casper-path": "/Users/casperjs",
    "cli": true,
    "name": "Bashir Osman"
}

However, on Windows (using the same command)

casperjs test.js --name="Bashir Osman"

it will return

{
    "casper-path": "C:\\Users\\casperjs",
    "cli": true,
    "name": "Bashir"
}

found an issue on github, but it seems unrelated

Upvotes: 2

Views: 176

Answers (1)

b26
b26

Reputation: 198

On windows, you'll need multiple double quotes.

change

casperjs test.js --name="Bashir Osman"

to

casperjs test.js --name="""Bashir Osman"""

Upvotes: 3

Related Questions