mirror of
https://github.com/iustin/mt-st.git
synced 2026-01-03 10:55:15 +00:00
mt: make usage() show default tape device
This is not unified with version(), and the quotes have been removed (looks more standard).
This commit is contained in:
3
mt.c
3
mt.c
@@ -364,7 +364,7 @@ int main(int argc, char **argv)
|
||||
static void version()
|
||||
{
|
||||
printf("mt-st v. %s\n", VERSION);
|
||||
printf("default tape device: '%s'\n", DEFTAPE);
|
||||
printf("default tape device: %s\n", DEFTAPE);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
@@ -375,6 +375,7 @@ static void usage(int explain, int exit_code)
|
||||
|
||||
fprintf(stderr, "usage: mt [-v] [--version] [-h] [ -f device ] command [ "
|
||||
"count ]\n");
|
||||
fprintf(stderr, "default tape device: %s\n", DEFTAPE);
|
||||
if (explain) {
|
||||
for (ind = 0; cmds[ind].cmd_name != NULL;) {
|
||||
if (ind == 0)
|
||||
|
||||
Reference in New Issue
Block a user