Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
d2f864c5
Commit
d2f864c5
authored
Sep 05, 2014
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(ULogServer): дописал help для утилиты uniset2-log
parent
1db282a3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
log.cc
Utilities/ULog/log.cc
+13
-4
No files found.
Utilities/ULog/log.cc
View file @
d2f864c5
...
@@ -26,10 +26,19 @@ static struct option longopts[] = {
...
@@ -26,10 +26,19 @@ static struct option longopts[] = {
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
static
void
print_help
()
static
void
print_help
()
{
{
printf
(
"-h|--help - this message
\n
"
);
printf
(
"-h, --help - this message
\n
"
);
printf
(
"[-v|--verbose] - Print all messages to stdout
\n
"
);
printf
(
"-v, --verbose - Print all messages to stdout
\n
"
);
printf
(
"[-a|--iaddr] addr - Inet address for listen connections.
\n
"
);
printf
(
"[-a|--iaddr] addr - ULogServer ip or hostname.
\n
"
);
printf
(
"[-p|--port] port - Bind port.
\n
"
);
printf
(
"[-p|--port] port - ULogServer port.
\n
"
);
printf
(
"
\n
"
);
printf
(
"Commands:
\n
"
);
printf
(
"[--add | -l] info,warn,crit,... - Add log levels.
\n
"
);
printf
(
"[--del | -d] info,warn,crit,... - Delete log levels.
\n
"
);
printf
(
"[--set | -s] info,wanr,crit,... - Set log levels.
\n
"
);
printf
(
"--off, -o - Off the write log file (if enabled).
\n
"
);
printf
(
"--on, -n - On the write log file (if before disabled).
\n
"
);
printf
(
"--rotate, -r - rotate log file.
\n
"
);
}
}
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment