Closed
Bug 1145882
Opened 8 years ago
Closed 8 years ago
Add --version to shell
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: sstangl, Assigned: sstangl)
Details
Attachments
(2 files)
4.59 KB,
patch
|
glandium
:
review+
|
Details | Diff | Splinter Review |
2.61 KB,
patch
|
evilpie
:
review+
|
Details | Diff | Splinter Review |
mkedlaya_ on IRC had an old JS shell around and wanted to know the build information. Adding --version would be standard and handy. Part 1 fixes a bug where the version information would be omitted from the version string, because $PYTHON isn't yet defined at the point of invocation.
Attachment #8580963 -
Flags: review?(mh+mozilla)
Assignee | ||
Comment 1•8 years ago
|
||
Adds -v and --version to the shell as an option with special handling.
Attachment #8580966 -
Flags: review?(evilpies)
Comment 2•8 years ago
|
||
Comment on attachment 8580966 [details] [diff] [review] Part 2: Add --version. Review of attachment 8580966 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/shell/jsoptparse.cpp @@ +255,5 @@ > > OptionParser::Result > +OptionParser::printVersion(const char *progname) > +{ > + MOZ_ASSERT(ver); Ugh, I guess `version` is really too long. @@ +257,5 @@ > +OptionParser::printVersion(const char *progname) > +{ > + MOZ_ASSERT(ver); > + printf("%s\n", ver); > + return ParseHelp; I would rename this to EarlyExit.
Attachment #8580966 -
Flags: review?(evilpies) → review+
Updated•8 years ago
|
Attachment #8580963 -
Flags: review?(mh+mozilla) → review+
Assignee | ||
Comment 3•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/4f8bbef85715 https://hg.mozilla.org/integration/mozilla-inbound/rev/96aef1037d39
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → sstangl
Comment 4•8 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/4f8bbef85715 https://hg.mozilla.org/mozilla-central/rev/96aef1037d39
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in
before you can comment on or make changes to this bug.
Description
•