• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            隨筆 - 64, 文章 - 11, 評論 - 12, 引用 - 0
            數據加載中……

            Linux 程序man手冊頁模板

                  寫了個小工具,為了讓它看起來更專業一些,也很想讓工具能象Linux中的其它工具一樣能被man顯示使用它的幫助信息。上網搜了下相關的資料,網上找到了一些關于寫man幫助的語法,介紹得比較詳細和深入。同樣也得花許多時間來學習和掌握,我們的程序不需要更加表現豐富的幫助頁。我希望能花很少的時間快速寫出一個幫助來,所以我找到begin linux programing中的第九章中的幫助示例。以這個示例為基礎作些改動就可以作出一個還不錯的幫助頁,減少難度。

            .TH MYAPP 1

            .SH NAME
            Myapp \- A simple demonstration application that does very little.

            .SH SYNOPSIS
            .B myapp
            [\-option ...]

            .SH DESCRIPTION
            .PP
            \fImyapp\fP is a complete application that does nothing useful.

            .PP
            It was written for demonstration purposes.

            .SH OPTIONS
            .PP
            It doesn't have any, but lets pretend, to make this template complete:

            .TP
            .BI \-option
            If there was an option, it would not be -option.

            .SH RESOURCES
            .PP
            myapp uses almost no resources.

            .SH DIAGNOSTICS
            The program shouldn't output anything, so if you find it doing so there's
            probably something wrong. The return value is zero.

            .SH SEE ALSO
            The only other program we know with this this little functionality is the
            ubiquitous hello world application.

            .SH COPYRIGHT
            myapp is Copyright (c) 2007 Wiley Publishing, Inc.

            This program is free software; you can redistribute it and/or modify
            it under the terms of the GNU General Public License as published by
            the Free Software Foundation; either version 2 of the License, or
            (at your option) any later version.

            This program is distributed in the hope that it will be useful,
            but WITHOUT ANY WARRANTY; without even the implied warranty of
            MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
            GNU General Public License for more details.

            You should have received a copy of the GNU General Public License
            along with this program; if not, write to the Free Software
            Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

            .SH BUGS
            There probably are some, but we don't know what they are yet.

            .SH AUTHORS
            Neil Matthew and Rick Stones

            .SH ACKNOWLEDGEMENT
            Thanks to Wrox press for publishing this book.

            posted on 2013-04-07 17:03 Robertxiao 閱讀(1394) 評論(0)  編輯 收藏 引用 所屬分類: Linux

            99久久精品费精品国产| 99蜜桃臀久久久欧美精品网站 | 国产亚洲欧美成人久久片| 久久综合给合久久狠狠狠97色69| 久久国产免费观看精品3| 久久精品国产一区二区三区日韩| 久久综合色区| 精品无码久久久久国产| 久久精品国产精品亚洲下载| 国内精品久久久久影院亚洲| 国产亚洲精品自在久久| 久久久亚洲精品蜜桃臀| 久久亚洲美女精品国产精品| 精品国产青草久久久久福利 | 亚洲性久久久影院| 久久精品国产第一区二区三区 | 狠狠狠色丁香婷婷综合久久俺| 久久国产精品免费| 久久亚洲AV成人出白浆无码国产| 久久99久久成人免费播放| 潮喷大喷水系列无码久久精品| 色欲综合久久躁天天躁| 色综合久久88色综合天天| 久久精品水蜜桃av综合天堂| 性高湖久久久久久久久AAAAA| 狠狠色丁香久久综合婷婷| 亚洲国产欧美国产综合久久| 亚洲国产成人乱码精品女人久久久不卡| 97久久综合精品久久久综合| 无码人妻精品一区二区三区久久| 亚洲AV伊人久久青青草原| 国产免费久久久久久无码| 久久久九九有精品国产| 久久99精品综合国产首页| 欧美精品久久久久久久自慰| 亚洲国产精品无码久久久秋霞2| 久久国产精品无| 人妻无码αv中文字幕久久琪琪布| 欧美精品丝袜久久久中文字幕| 久久国产精品国语对白| 久久久噜噜噜久久|