#!/usr/bin/env python
# -*- coding: utf-8 -*-

from libavg import avg, app
import sys

class VideoPlayer(app.MainDiv):
    def init(self):
        self.videoNode = avg.VideoNode(
                href=sys.argv[1],
                parent=self)
        self.videoNode.play()
        
app.App().run(VideoPlayer(), app_resolution='1920x1080', app_window_size='720x450')

@@ -116,16 +116,17 @@
 v):%0A
+%0A
     def 
 init
@@ -121,17 +121,268 @@
     def 
-i
+onArgvParserCreated(self, parser):%0A        parser.set_usage(%22%25prog %3Cvideo%3E%22)%0A%0A    def onArgvParsed(self, options, args, parser):%0A        if len(args) != 1:%0A            parser.print_help()%0A            sys.exit(1)%0A%0A        self.__dir=args%5B0%5D%0A%0A    def onI
 nit(self
@@ -450,18 +450,50 @@
 ef=s
-ys.argv%5B1%5D
+elf.__dir,%0A                size=(500, 500)
 ,%0A  

Add checks for script parameters and correct onInit name