Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
6779081d
...
6779081defd326ffd0b91795bf77ec45508b0591
authored
2013-07-13 17:42:18 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added engine version information in default help text
1 parent
c636b968
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
bin/bootstrap.js
bin/bootstrap.js
View file @
6779081
...
...
@@ -28,7 +28,7 @@
*
*/
/*global process, console, phantom, require:true*/
/*global process, console, phantom,
slimer,
require:true*/
/*jshint maxstatements:34, maxcomplexity:10*/
// node check
...
...
@@ -162,10 +162,11 @@ CasperError.prototype = Object.getPrototypeOf(new Error());
* Prints CasperJS help.
*/
function
printHelp
()
{
var
phantomVersion
=
[
phantom
.
version
.
major
,
phantom
.
version
.
minor
,
phantom
.
version
.
patch
].
join
(
'.'
);
var
engine
=
phantom
.
casperEngine
===
'slimerjs'
?
slimer
:
phantom
;
var
version
=
[
engine
.
version
.
major
,
engine
.
version
.
minor
,
engine
.
version
.
patch
].
join
(
'.'
);
return
__terminate
([
'CasperJS version '
+
phantom
.
casperVersion
.
toString
()
+
' at '
+
phantom
.
casperPath
+
', using
PhantomJS version '
+
phantomV
ersion
,
' at '
+
phantom
.
casperPath
+
', using
'
+
phantom
.
casperEngine
+
' version '
+
v
ersion
,
fs
.
read
(
fs
.
pathJoin
(
phantom
.
casperPath
,
'bin'
,
'usage.txt'
))
].
join
(
'\n'
))
}
...
...
Please
register
or
sign in
to post a comment