diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2015-12-24 11:45:35 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2015-12-24 11:45:35 +0000 |
commit | 5520c0c6cf312ebda8b0f8c5b1c82627ab51f3eb (patch) | |
tree | 7415c79169eda4f6f24c6d1f02396d0c84390593 /usr.bin/file/file.c | |
parent | 1bd94c3a6a385e133cf917d965075d89330ceeef (diff) |
Add --brief and --dereference, used by xdg-open/xdg-mime.
From Ralf Horstmann, ok tb@ deraadt@ nicm@ sthen@
Diffstat (limited to 'usr.bin/file/file.c')
-rw-r--r-- | usr.bin/file/file.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/file/file.c b/usr.bin/file/file.c index 1f5e8336f81..d6987e32f2a 100644 --- a/usr.bin/file/file.c +++ b/usr.bin/file/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.56 2015/12/05 13:18:09 claudio Exp $ */ +/* $OpenBSD: file.c,v 1.57 2015/12/24 11:45:34 jca Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org> @@ -102,9 +102,11 @@ static char *magicpath; static FILE *magicfp; static struct option longopts[] = { - { "mime", no_argument, NULL, 'i' }, - { "mime-type", no_argument, NULL, 'i' }, - { NULL, 0, NULL, 0 } + { "brief", no_argument, NULL, 'b' }, + { "dereference", no_argument, NULL, 'L' }, + { "mime", no_argument, NULL, 'i' }, + { "mime-type", no_argument, NULL, 'i' }, + { NULL, 0, NULL, 0 } }; __dead void |