mirror of
https://github.com/samba-team/samba.git
synced 2025-03-22 02:50:28 +03:00
add a new commandline flag -v to enable verbose output
(This used to be ctdb commit 96dd9f40f9464c3d9de98f1323568724a1e31dc9)
This commit is contained in:
parent
388d18cc93
commit
08a5b0c7c5
@ -44,6 +44,7 @@ static struct {
|
||||
int timelimit;
|
||||
uint32_t pnn;
|
||||
int machinereadable;
|
||||
int verbose;
|
||||
int maxruntime;
|
||||
} options;
|
||||
|
||||
@ -4529,6 +4530,7 @@ static void usage(void)
|
||||
"Options:\n" \
|
||||
" -n <node> choose node number, or 'all' (defaults to local node)\n"
|
||||
" -Y generate machinereadable output\n"
|
||||
" -v generate verbose output\n"
|
||||
" -t <timelimit> set timelimit for control in seconds (default %u)\n", options.timelimit);
|
||||
printf("Controls:\n");
|
||||
for (i=0;i<ARRAY_SIZE(ctdb_commands);i++) {
|
||||
@ -4560,6 +4562,7 @@ int main(int argc, const char *argv[])
|
||||
{ "timelimit", 't', POPT_ARG_INT, &options.timelimit, 0, "timelimit", "integer" },
|
||||
{ "node", 'n', POPT_ARG_STRING, &nodestring, 0, "node", "integer|all" },
|
||||
{ "machinereadable", 'Y', POPT_ARG_NONE, &options.machinereadable, 0, "enable machinereadable output", NULL },
|
||||
{ "verbose", 'v', POPT_ARG_NONE, &options.verbose, 0, "enable verbose output", NULL },
|
||||
{ "maxruntime", 'T', POPT_ARG_INT, &options.maxruntime, 0, "die if runtime exceeds this limit (in seconds)", "integer" },
|
||||
POPT_TABLEEND
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user