Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ping: fatal error for unknown options (#477)
* Print usage and exit for invalid option -x * Include -n flag in usage string * Throw error if extra arguments appear (closer to BSD version) * test1: "perl ping" --> error; no host * test2: "perl ping -x" --> error; no -x flag * test3: "perl ping 127.0.0.1 10" --> success; localhost with timeout of 10 seconds * test4: "perl ping 8.8.8.8 10 11" --> error; 11 means nothing
- Loading branch information