提交 592ba3bb authored 作者: Anthony Minessale's avatar Anthony Minessale

add help

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15378 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 f46fe4a9
......@@ -13,6 +13,21 @@ my $e;
my $running = 1;
my $con;
my $USAGE = "
FreeSWITCH Logger Utility
USAGE:
-h --helpThis help
-p --port <port> Choose port
-P -pass <pass> Choose password
-f --file <file> Output file
-pb --paste-bin <name> Post to FreeSWITCH Paste Bin
-sp --sip-profiles <list> List of SIP profiles to trace
-sd --sip-debug <leve> Set SIP debug level
No arguments given will trace profile 'internal' to STDOUT
";
$SIG{INT} = sub { $running = 0 };
sub parse(\$\$$) {
......@@ -27,6 +42,11 @@ sub parse(\$\$$) {
}
for($i = 0; $i < $argc; $i++) {
if ($ARGV[$i] =~ /^\-help$|^\-\-help$/) {
print $USAGE;
exit;
}
if (! (parse($i, $host, '^-h$|^--host$') ||
parse($i, $port, '^-p$|^--port$') ||
parse($i, $pass, '^-P$|^--pass$') ||
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论