Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=c81c6eba540193c19ec0f6440a86e38527821a5d

commit c81c6eba540193c19ec0f6440a86e38527821a5d
Author: VMiklos <[EMAIL PROTECTED]>
Date:   Sat Sep 29 23:33:36 2007 +0200

etcconfig: added a manpage, --version and --help options

diff --git a/etcconfig.py b/etcconfig.py
index d076453..763f23d 100644
--- a/etcconfig.py
+++ b/etcconfig.py
@@ -39,6 +39,13 @@ def checkedit():
else:
continue

+if len(sys.argv) > 1:
+       if sys.argv[1] in ('-v', '--version'):
+               print "etcconfig 0.1 (pacman-tools)"
+               sys.exit()
+       elif sys.argv[1] in ('-h', '--help'):
+               os.system("man etcconfig")
+               sys.exit()

checkroot()
checkedit()
diff --git a/etcconfig.txt b/etcconfig.txt
new file mode 100644
index 0000000..87798be
--- /dev/null
+++ b/etcconfig.txt
@@ -0,0 +1,26 @@
+= bumppkg(1)
+
+== NAME
+
+etcconfig - searches for configuration files waiting for merge
+
+== SYNOPSIS
+
+etcconfig [options]
+
+== OPTIONS
+
+--help::
+       Display this manpage.
+
+--version::
+       Display the package version.
+
+== AUTHORS
+
+Written by Vilmos Katona <[EMAIL PROTECTED]>.
+
+== COPYRIGHT
+
+etcconfig may be copied and modified under the terms of the GNU General Public
+License.
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to