diff options
author | Santiago Collazo <scollazo@activitycentral.com> | 2012-10-17 18:08:47 (GMT) |
---|---|---|
committer | Santiago Collazo <scollazo@activitycentral.com> | 2012-10-17 18:08:47 (GMT) |
commit | 2727bbb9a2c91a97742d4757247a30e31742e33e (patch) | |
tree | c80174da7822d9a270ede4406b8cab9a00073fc4 /bin/sugar-launch | |
parent | 624f9263dde350d8916290b5414718571ea8880a (diff) | |
parent | 2cc6b91918aa8fabeb68b143f12c71cbf017b613 (diff) |
Merge remote-tracking branch 'ajay/0.97.7-as-base' into integration
Diffstat (limited to 'bin/sugar-launch')
-rw-r--r-- | bin/sugar-launch | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/sugar-launch b/bin/sugar-launch index 7297a8e..18c0bb7 100644 --- a/bin/sugar-launch +++ b/bin/sugar-launch @@ -28,6 +28,13 @@ usage = "usage: %prog [options] activity" parser = OptionParser(usage) parser.add_option("-d", "--debug", action="store_true", dest="debug", help="launch activity inside gdb") +parser.add_option("-a", "--activity_id", action="store", dest="activity_id", + help="unique id for the activity to be launched") +parser.add_option("-o", "--object_id", action="store", dest="object_id", + help="identity of the journal object associated with" \ + " the activity") +parser.add_option("-u", "--uri", action="store", dest="uri", + help="URI associated with the activity") (options, args) = parser.parse_args() if len(args) == 0: @@ -42,7 +49,8 @@ if not path: sys.exit(1) activity = ActivityBundle(path) -cmd_args = activityfactory.get_command(activity) +cmd_args = activityfactory.get_command(activity, options.activity_id, + options.object_id, options.uri) def _which(exec_file): if 'PATH' in os.environ: |