Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | From 2b9ed06850410d70371b31de5f131e484ba1c851 Mon Sep 17 00:00:00 2001 |
| 2 | From: Lu Chong <Chong.Lu@windriver.com> |
| 3 | Date: Thu, 17 Oct 2013 16:06:04 +0800 |
| 4 | Subject: [PATCH] fix mime-construct --help return value |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | |
| 8 | Signed-off-by: Lu Chong <Chong.Lu@windriver.com> |
| 9 | |
| 10 | --- |
| 11 | mime-construct | 5 +++-- |
| 12 | 1 file changed, 3 insertions(+), 2 deletions(-) |
| 13 | |
| 14 | diff --git a/mime-construct b/mime-construct |
| 15 | index cad7d0e..707ed19 100755 |
| 16 | --- a/mime-construct |
| 17 | +++ b/mime-construct |
| 18 | @@ -39,7 +39,7 @@ usage: $Me switch... |
| 19 | |
| 20 | Global settings: |
| 21 | --debug turn debugging on |
| 22 | - --help show this and then die |
| 23 | + --help show this |
| 24 | --output don\'t mail, output to stdout (loses bcc info) |
| 25 | --subpart generate subpart rather than whole message (turns |
| 26 | on --output, changes other semantics a bit) |
| 27 | @@ -150,7 +150,8 @@ sub xwarn { |
| 28 | |
| 29 | sub usage { |
| 30 | xwarn @_ if @_; |
| 31 | - die $Usage; |
| 32 | + print $Usage; |
| 33 | + exit 0; |
| 34 | } |
| 35 | |
| 36 | sub init { |
| 37 | -- |
| 38 | 1.7.9.5 |
| 39 | |