Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tell users a mistake is present when parameters are incorrect/unknown #96

Closed
Famlam opened this issue Sep 2, 2013 · 4 comments
Closed
Assignees

Comments

@Famlam
Copy link

Famlam commented Sep 2, 2013

I'm calling JSCover like this from the command line (Windows):
java -jar "...\JSCover-all.jar" -ws --unknownoption --report-dir="..." --no-instrument="..."

The text I see after that is the following:

Usage: java -jar JSCover-all.jar -ws [OPTION]...
Run a server for instrumenting JavaScript with code coverage information.

Options:
      --document-root=DIR       serve content from DIR (default: current directory)
      --no-instrument=URL       do not instrument URL
      --no-instrument-reg=URL   do not instrument if URL matches regular expression
      --only-instrument-reg=URL only instrument if URL matches regular expression
      --report-dir=DIR          store report to DIR (default: current directory)
      --port=PORT               use PORT for TCP port (default: 8080)
      --proxy                   run as a proxy
      --js-version=VERSION      JavaScript version 1.0, 1.2, ..., 1.8 (default: 1.3)
      --no-branch               turn off branch coverage data collection
      --no-function             turn off function coverage data collection
      --include-unloaded-js     include unloaded JavaScript under <document-root> in the report
      --log=LEVEL               set logging level to: SEVERE (default), WARNING, INFO, CONFIG, FINE, FINER, FINEST
  -h, --help                    display this help and exit

This text does not explain to me why I'm seeing the message, instead of the expected output. In fact, there isn't even a line that tells me I did make a mistake, and therefore see this text. It would be great if a line could be added, explaining why I'm seeing this message. For example: There is no option '--unknownoption'

@ghost ghost assigned tntim96 Sep 2, 2013
@tntim96
Copy link
Owner

tntim96 commented Sep 3, 2013

I've checked a fix into trunk. Are you able to checkout, build the JAR and re-try?

@Famlam
Copy link
Author

Famlam commented Sep 3, 2013

I'm sorry, but I don't know how to build Java applications :(

@devangnegandhi
Copy link

Well since @Famlam does'nt know how to build jscover and I had already built jscover to verify another feature for @tntim96, I have verified that this change has been fixed. You can close this issue.

@tntim96
Copy link
Owner

tntim96 commented Sep 3, 2013

Thanks

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants