[Frugalware-darcs] vmexam: dg: improve usage()s, a few more error handling

VMiklos vmiklos at frugalware.org
Thu Jun 14 02:55:07 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=vmexam;a=darcs_commitdiff;h=20070614003652-e2957-5eadbc212dec550e03a22e901981ee466e53731b.gz;

[dg: improve usage()s, a few more error handling
VMiklos <vmiklos at frugalware.org>**20070614003652] {
hunk ./python/dg.py 422
-	if argv[0] in ("-h", "--help"):
+	if len(argv) and argv[0] in ("-h", "--help"):
hunk ./python/dg.py 424
-	else:
-		return os.system("git clone %s" % " ".join(argv))
+	return os.system("git clone %s" % " ".join(argv))
hunk ./python/dg.py 428
-		print """Usage: darcs-git rollback [OPTION]...
+		print """Usage: darcs-git rollback [OPTION]... <COMMIT-HASH>
hunk ./python/dg.py 435
-	if argv[0] in ("-h", "--help"):
+	if len(argv) and argv[0] in ("-h", "--help"):
}


More information about the Frugalware-darcs mailing list