Cleanup usage() across sbase

Some tools didn't use argv0 for tool name, or usage() at all.
This commit is contained in:
Quentin Rameau
2015-12-21 18:36:28 +01:00
committed by sin
parent 00d7bf4ea5
commit 6e7743eb56
13 changed files with 20 additions and 17 deletions

6
tar.c
View File

@@ -490,8 +490,10 @@ xt(int argc, char *argv[], int mode)
static void
usage(void)
{
eprintf("usage: %s [-C dir] [-J | -Z | -a | -j | -z] -x [-m | -t] [-f file] [file ...]\n"
" %s [-C dir] [-J | -Z | -a | -j | -z] [-h] -c path ... [-f file]\n", argv0, argv0);
eprintf("usage: %s [-C dir] [-J | -Z | -a | -j | -z] -x [-m | -t] "
"[-f file] [file ...]\n"
" %s [-C dir] [-J | -Z | -a | -j | -z] [-h] -c path ... "
"[-f file]\n", argv0, argv0);
}
int