summaryrefslogtreecommitdiffstats
path: root/4grab.py
diff options
context:
space:
mode:
authorGravatar ryuslash2010-02-09 02:45:56 +0100
committerGravatar ryuslash2010-02-09 02:45:56 +0100
commit68be1fe204732b137b5a776b3c4e44876006ac94 (patch)
treeefdebd18691450f241e0b5ab80323b9f623e7eeb /4grab.py
parent1b09267876e51c0456c062e10ab70c0f7eba6c34 (diff)
download4grab-68be1fe204732b137b5a776b3c4e44876006ac94.tar.gz
4grab-68be1fe204732b137b5a776b3c4e44876006ac94.zip
Added license info and README
Diffstat (limited to '4grab.py')
-rwxr-xr-x4grab.py29
1 files changed, 28 insertions, 1 deletions
diff --git a/4grab.py b/4grab.py
index 7863854..adb47ca 100755
--- a/4grab.py
+++ b/4grab.py
@@ -1,4 +1,24 @@
#!/bin/env python
+
+######################################################################
+# Copyright 2009, 2010 ryuslash
+#
+# This file is part of 4grab.
+#
+# 4grab 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 3 of the License, or
+# (at your option) any later version.
+#
+# 4grab 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 4grab. If not, see <http://www.gnu.org/licenses/>.
+######################################################################
+
import optparse
import sys
@@ -7,7 +27,14 @@ import download
parser = optparse.OptionParser()
-parser.add_option("-e", nargs=2, dest="confval", metavar="VALUE")
+parser.set_usage(
+"""%prog [options]
+
+4grab Copyright (C) 2009-2010 ryuslash
+This program comes with ABSOLUTELY NO WARRANTY.
+This is free software, and you are welcome to redistribute it
+under certain conditions.""")
+parser.add_option("-e", nargs=2, dest="confval", metavar="CONF VALUE", help="Set configuration option CONF to be VALUE")
(options, args) = parser.parse_args()