• <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 閱讀(1398) 評論(0)  編輯 收藏 引用 所屬分類: Linux

            亚洲午夜久久久精品影院| 久久er国产精品免费观看8| 伊人久久精品影院| 精品久久久久久久国产潘金莲| 精品综合久久久久久98| 久久婷婷五月综合97色一本一本| 久久久久夜夜夜精品国产| 国产无套内射久久久国产| 久久人人青草97香蕉| 久久丫精品国产亚洲av不卡 | 久久综合九色综合久99| 怡红院日本一道日本久久 | 国产成人久久激情91| 久久国产成人亚洲精品影院| 久久99热这里只有精品国产| 亚洲午夜久久久精品影院| 久久亚洲国产精品成人AV秋霞| www.久久热| 久久精品国产亚洲AV忘忧草18| 青青国产成人久久91网| 国内精品伊人久久久久777| 国产午夜精品久久久久九九电影| 18禁黄久久久AAA片| 国产女人aaa级久久久级| 俺来也俺去啦久久综合网| 亚洲精品tv久久久久| 久久久WWW免费人成精品| 婷婷久久综合九色综合98| 亚洲AV无码久久精品成人| 色妞色综合久久夜夜| 久久国产精品一区| 国产精品xxxx国产喷水亚洲国产精品无码久久一区 | 国产日韩久久免费影院| 国产精品久久久久9999| 亚洲va中文字幕无码久久| 久久亚洲AV成人无码软件 | 国产欧美久久久精品影院| 午夜精品久久久久成人| 久久97久久97精品免视看秋霞| 久久综合狠狠综合久久激情 | 久久99精品久久久久久hb无码|