diff options
author | Simon Schampijer <simon@schampijer.de> | 2008-05-16 10:20:43 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2008-05-16 10:20:43 (GMT) |
commit | 9a0eb195a98cca30705a6003b58824d097fb627f (patch) | |
tree | 4c1217941d9f273be1fbdeb5795f2119f0ad0f11 | |
parent | c3559df95660feaaf2a8b3894cb2bbaa47e4d44e (diff) |
sugar-install-bundle dies whithout parameters
Added usage message and check #6985 (ffm)
-rw-r--r-- | bin/sugar-install-bundle | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/sugar-install-bundle b/bin/sugar-install-bundle index ce28977..52deada 100644 --- a/bin/sugar-install-bundle +++ b/bin/sugar-install-bundle @@ -6,6 +6,14 @@ from sugar.bundle.activitybundle import ActivityBundle from dbus.mainloop.glib import DBusGMainLoop DBusGMainLoop(set_as_default=True) +def cmd_help(): + print 'Usage: sugar-install-bundle [ bundlename ] \n\n\ + Install an activity bundle (.xo). \n' + +if len(sys.argv) != 2: + cmd_help() + sys.exit(2) + bundle = ActivityBundle(sys.argv[1]) bundle.install() |