Skip to content

Commit a21045a

Browse files
committed
mbop: switch for-all-users -t to -j option
Be in line with make(1) or parallel(1).
1 parent c04f0fa commit a21045a

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

doc/gromox-mbop.8

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,13 @@ Timed deletion of trash:
167167
gromox\-mbop \-u [email protected] emptyfld \-Rt 1week \-\-soft DELETED
168168
.SH for\-all\-users
169169
.SS Synopsis
170-
\fBfor\-all\-users\fP [\fB\-t\fP \fIthreads\fP] \fIcommand\fP [command-args...]
170+
\fBfor\-all\-users\fP [\fB\-j\fP \fIjobs\fP] \fIcommand\fP [command-args...]
171171
.SS Options
172172
.TP
173-
\fB\-t\fP \fIthreads\fP
174-
Maximum parallel execution factor. (Experimental, not implemented for all
175-
actions.) 0 means autodetect.
173+
\fB\-j\fP \fIjobs\fP
174+
Maximum parallel execution factor. (Experimental.) 0 means autosizing. Only
175+
ping/vacuum/unload support this, and the option is otherwise ignored. Use
176+
external tools like parallel(1) or make(1) for guaranteed parallelization.
176177
.br
177178
Default: \fI1\fP
178179
.SS Description

tools/mbop_main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,14 +648,14 @@ namespace for_all_wrap {
648648

649649
static unsigned int g_numthreads = 1;
650650
static constexpr HXoption g_options_table[] = {
651-
{{}, 't', HXTYPE_UINT, &g_numthreads, {}, {}, {}, "Maximum concurrency for execution", "INTEGER"},
651+
{{}, 'j', HXTYPE_UINT, &g_numthreads, {}, {}, {}, "Maximum concurrency for execution", "INTEGER"},
652652
HXOPT_AUTOHELP,
653653
HXOPT_TABLEEND,
654654
};
655655

656656
static int help()
657657
{
658-
fprintf(stderr, "Usage: for-all-users [-t threads] command [args...]\n");
658+
fprintf(stderr, "Usage: for-all-users [-j jobs] command [args...]\n");
659659
global::command_overview();
660660
return EXIT_PARAM;
661661
}

0 commit comments

Comments
 (0)