Bug 167802 - Support -v / --version in `jsc` binary
Summary: Support -v / --version in `jsc` binary
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-03 10:37 PST by Mathias Bynens
Modified: 2017-02-04 06:21 PST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias Bynens 2017-02-03 10:37:17 PST
There is currently no way to figure out the version of a given `jsc` binary:

```
$ jsc -v
Could not open file: -v

$ jsc --version
ERROR: invalid option: --version
>>> ^D

$ jsc --help
Usage: jsc [options] [files] [-- arguments]
  -d         Dumps bytecode (debug builds only)
  -e         Evaluate argument as script code
  -f         Specifies a source file (deprecated)
  -h|--help  Prints this help message
  -i         Enables interactive mode (default if no files are specified)
  -m         Execute as a module
  -s         Installs signal handlers that exit on a crash (Unix platforms only)
  -p <file>  Outputs profiling data to a file
  -x         Output exit code before terminating

  --sample                   Collects and outputs sampling profiler data
  --test262-async            Check that some script calls the print function with the string 'Test262:AsyncTestComplete'
  --strict-file=<file>       Parse the given file as if it were in strict mode (this option may be passed more than once)
  --module-file=<file>       Parse and evaluate the given file as module (this option may be passed more than once)
  --exception=<name>         Check the last script exits with an uncaught exception with the specified name
  --options                  Dumps all JSC VM options and exits
  --dumpOptions              Dumps all non-default JSC VM options before continuing
  --<jsc VM option>=<value>  Sets the specified JSC VM option
```

Please consider making `-v` / `--version` (and possibly `-h` / `--help`) output something useful.
Comment 1 Yusuke Suzuki 2017-02-04 05:54:50 PST
I'm not sure whether JavaScriptCore has some `version`.
Comment 2 Mathias Bynens 2017-02-04 06:21:24 PST
(In reply to comment #1)
> I'm not sure whether JavaScriptCore has some `version`.

Anything — even a build number, revision number, or commit hash — would be better than nothing.