A --help argument would help
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 62/100
Research direction
Start at com.jvmtop.JvmTop.main in JvmTop.java around line 122, where the reported NumberFormatException occurs. Run ./jvmtop.sh --help and try an unknown argument to compare the current behavior with the requested usage output. Done means --help displays the options and examples instead of failing, while invalid arguments still provide useful guidance.
Written by the indexing model from the issue text.
Description
What steps will reproduce the problem?
1. ./jvmtop.sh --help
jvmtop has several arguments that can only be learned through looking at a few
different pages in the wiki - since there is no source code, hard to know if
they are all documented anywhere.
What is the expected output? What do you see instead?
[me@localhost~]$ jvmtop --help
JvmTop 0.7.1 alpha, http://code.google.com/p/jvmtop
Usage: info [OPTIONS]... [PID]
Monitor JVM metrics on the command line
Options (only one can be specified):
--help this text
--once [PID] Run jvmtop one time, then exit
--delay N Delay N seconds between updates
--profile PID Profile a specifc JVM instance
Examples:
jvmtop Summarize all currently running JVM's
jvmtop 3944 Display detailed information for a single JVM (pid #3944)
jvmtop --delay 3 --profile 3944
Profile process #3944, updating the display every 3 seconds
Plus appending what you currently have written up for the column definitions on
the ExampleOutput wiki page would be a nice touch.
or for an unknown argument:
[me@localhost~]$ jvmtop --foo
jvmtop: unrecognized option '--foo'
Try --help for more information.
Actual:
[me@localhost~]$ jvmtop --help
Exception in thread "main" java.lang.NumberFormatException: For input string:
"--help"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:492)
at java.lang.Integer.parseInt(Integer.java:527)
at com.jvmtop.JvmTop.main(JvmTop.java:122)
Original issue reported on code.google.com by DaveParillo on 8 Aug 2013 at 11:49
- Dominant language
- Java
- Stars
- 5
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from HubSpot/jvmtop
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
auto-migrated Priority-Medium Type-Defect
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
auto-migrated Priority-Medium Type-Defect
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
auto-migrated Priority-Medium Type-Defect
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
auto-migrated Priority-Medium Type-Defect
Difficulty 1/5 Under an hour Newbie friendliness 55/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100