From b6b6dbfb28fc158a559d0cef669ac6cda9d97be7 Mon Sep 17 00:00:00 2001 From: alecflett Date: Mon, 21 Sep 2009 20:51:30 +0000 Subject: fix when required arguments are not specified - at least spit a semi-sane message to the user rather than totally barfing git-svn-id: http://freebase-python.googlecode.com/svn/trunk@215 5914aa95-5b3a-0410-a3b5-7b719e7fe9b2 --- freebase/fcl/schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'freebase/fcl/schema.py') diff --git a/freebase/fcl/schema.py b/freebase/fcl/schema.py index 47eb1fa..e10e72a 100644 --- a/freebase/fcl/schema.py +++ b/freebase/fcl/schema.py @@ -28,7 +28,7 @@ def cmd_dump_type(fb, baseid, follow_types=True): """ print >> sys.stdout, json.dumps(dump_type(fb.mss, typeid, follow_types), indent=2) -def cmd_restore(fb, newlocation, graphfile): +def cmd_restore(fb, newlocation=None, graphfile=None): """restore a graph object to the graph %prog restore newlocation graphfile -- cgit v1.3.1