Commit Diff
Diff:
f2c943b182ec72a63f1abeee60183819a99c14df
d237bfa13685a25fd2940fc7f1d3cea818fcf73d
Commit:
d237bfa13685a25fd2940fc7f1d3cea818fcf73d
Tree:
4796c1078574b7e15f2c8b8b89fa48ccfffa7277
Author:
frédéric galusik <fredg@salixos.org>
Committer:
frédéric galusik <fredg@salixos.org>
Date:
Tue Oct 30 18:47:28 2012 UTC
Message:
abort if no args
blob - a3a380c999622cc4291e6c18d87a4f7810eded7d
blob + 942f713487af3166531326f87ee5be8d2aa32c63
--- pkgtxt2db.py
+++ pkgtxt2db.py
@@ -63,6 +63,8 @@ parser.add_argument('-c', '--convert', action="store",
parser.add_argument('-o', '--output', action="store",
dest='output', default='packages',
help='Choose the name of your DB file')
+if len(sys.argv) == 1:
+ sys.exit('Wrong usage, see pkgtxt2db --help')
args = parser.parse_args()
# vars
Frédéric Galusik