[Frugalware-darcs] pacman-tools: dg: added copyright, --help and --version

VMiklos vmiklos at frugalware.org
Sun Jul 1 01:34:56 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=pacman-tools;a=darcs_commitdiff;h=20070630232357-e2957-91f45939342bf87bc1b197737895dc20eef43c76.gz;

[dg: added copyright, --help and --version
VMiklos <vmiklos at frugalware.org>**20070630232357] {
hunk ./darcs-git.py 3
+__author__ = "Miklos Vajna <vmiklos at frugalware.org>"
+__version__ = "0.7"
+__date__ = "Sun, 01 Jul 2007 01:19:06 +0200"
+__copyright__ = "Copyright (c) 2007 Miklos Vajna"
+__license__ = "GPL"
+
hunk ./darcs-git.py 688
-A darcs-like interface for git with ~22 commands. (Git has ~144.)
+A darcs-like interface for git with ~20 commands. (Git has ~140.)
hunk ./darcs-git.py 702
+
hunk ./darcs-git.py 744
-	if len(sys.argv) == 1 or sys.argv[1] == "-h":
+	def version():
+		print """darcs-git (pacman-tools) %s
+
+Copyright (c) 2007 by Miklos Vajna <vmiklos at frugalware.org>
+This is free software; see the source for copying conditions.  There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR \
+PURPOSE.""" % __version__
+	if len(sys.argv) == 1 or sys.argv[1] in ["-h", "--help"]:
hunk ./darcs-git.py 753
+	if sys.argv[1] in ["-v", "--version"]:
+		version()
}


More information about the Frugalware-darcs mailing list