teerytko / python-video4linux2

Automatically exported from code.google.com/p/python-video4linux2
0 stars 0 forks source link

OptionParser #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I replaced all the sys.argv[] stuff with OptionParser stuff, so now things
look like: 

        parser.add_option("-d", "--device", dest="device",
                          help="video device", default="/dev/video0" )

d = pyv4l2.Device(options.device)

and I don't have to type /dev/video0 ever again :)

It needs a little work, the --help doesn't show the defaults - pretty sure
there is a way to turn that on.  but it's good enough, and maybe someone
else can make it better.

Original issue reported on code.google.com by cfkars...@gmail.com on 28 Oct 2008 at 9:30

Attachments:

GoogleCodeExporter commented 8 years ago
looks like the diff is bigger than the file.  here is the file.

Original comment by cfkars...@gmail.com on 28 Oct 2008 at 10:33

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by cfkars...@gmail.com on 30 Oct 2008 at 10:22