cnping

Minimal Graphical Ping Tool
git clone https://git.sinitax.com/cnlohr/cnping
Log | Files | Refs | Submodules | README | LICENSE | sfeed.txt

commit 09562d13f213159f7f5adf3cf76037063e47c498
parent f218ce2761b95fbdb5e48aec869f0679618d7fd2
Author: hackrid <hack.rid@gmail.com>
Date:   Fri,  8 Apr 2016 14:01:35 +0200

reworked help text and readme

Diffstat:
MREADME.md | 7++++++-
Mcnping.c | 9++++++---
2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md @@ -3,7 +3,12 @@ cnping Minimal Graphical IPV4 Ping Tool. (also comes with searchnet, like nmap but smaller and simpler). It uses rawdraw so it is OS independent. -Usage: cnping [IP address] [seconds between pings (decimal OK)] [additional size to increase] +Usage: cnping [host] [period] [extra size] [y-axis scaling] + + [host] -- domain or IP address of ping target + [period] -- period in seconds (optional), default 0.02 + [extra size] -- ping packet extra size (above 12), optional, default = 0 + [y-axis scaling] -- see more swing for small values (optional), default = 1 Picture: diff --git a/cnping.c b/cnping.c @@ -221,9 +221,12 @@ int main( int argc, const char ** argv ) if( argc < 2 ) { - ERRM( "Usage: cnping [host] [ping period in seconds (optional) default 0.02] " - "[ping packet extra size (above 12), default = 0] " - "[GUI y-axis scale factor (optional), default = 1]\n"); + ERRM( "Usage: cnping [host] [period] [extra size] [y-axis scaling]\n" + + " [host] -- domain or IP address of ping target \n" + " [period] -- period in seconds (optional), default 0.02 \n" + " [extra size] -- ping packet extra size (above 12), optional, default = 0 \n" + " [y-axis scaling] -- see more swing for small values (optional), default = 1\n"); return -1; }