OSDN Git Service

Fixed the wrong implementation of show errormessage.
[portsreinstall/current.git] / lib / libusage.sh
1 #!/bin/sh -e
2 # ==============================================================================
3 # portsreinstall library script
4 # - Help messages -
5 # Copyright (C) 2018 Mamoru Sakaue, MwGhennndo, All Rights Reserved.
6 # This software is distributed under the 2-Clause BSD License.
7 # ==============================================================================
8
9 # ============= Output a short help =============
10 usage_short ()
11 {
12         usage_short_content | fold -s -w `misc_get_console_column_size`
13 }
14
15 # ============= Content of the short help =============
16 usage_short_content () { :; }
17
18 # ============= Output a long help =============
19 usage_long ()
20 {
21         zcat "${MYPREFIX}/man/man8/${APPNAME}.8.gz" | nroff -man
22 }