summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/file/file/0001-Add-P-prompt-into-Usage-info.patch
blob: 95e1291f669b2968c54c3c3c572f00d34a3840c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From 08abf944b2bff27b6dd325dd15b4861cebef113a Mon Sep 17 00:00:00 2001
From: Junling Zheng <zhengjunling@huawei.com>
Date: Wed, 8 Apr 2015 03:26:57 +0000
Subject: [PATCH] Add -P prompt into Usage info

Currently, Usage info doesn't include -P prompt, add it:

root@arma9el:~# file
Usage: file [-bcEhikLlNnprsvz0] [--apple] [--mime-encoding] [--mime-type]
            [-e testname] [-F separator] [-f namefile] [-m magicfiles]
            [-P parameter=limits] file ...
       file -C [-m magicfiles]
       file [--help]

Upstream-Status: Submitted

Signed-off-by: Junling Zheng <zhengjunling@huawei.com>
---
 src/file.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/file.c b/src/file.c
index 546fd8b..beef868 100644
--- a/src/file.c
+++ b/src/file.c
@@ -76,8 +76,8 @@ int getopt_long(int argc, char * const *argv, const char *optstring, const struc
 # define USAGE  \
     "Usage: %s [" FILE_FLAGS \
 	"] [--apple] [--mime-encoding] [--mime-type]\n" \
-    "            [-e testname] [-F separator] [-f namefile] [-m magicfiles] " \
-    "file ...\n" \
+    "            [-e testname] [-F separator] [-f namefile] [-m magicfiles]\n" \
+    "            [-P parameter=limits] file ...\n" \
     "       %s -C [-m magicfiles]\n" \
     "       %s [--help]\n"
 
-- 
1.8.3.4