]> git.ipfire.org Git - thirdparty/libvirt.git/commit
example: Fix argument handling
authorPhilipp Hahn <hahn@univention.de>
Wed, 12 Oct 2011 14:54:40 +0000 (16:54 +0200)
committerEric Blake <eblake@redhat.com>
Wed, 12 Oct 2011 22:11:54 +0000 (16:11 -0600)
commit08d56e24b088be004e432a8d22d2ddea0556efa1
tree8c9d6294a7c30150d5798bcdb45b35ad00ee03dc
parent5cf56c4b23125e27fad481c67b540689ad4adcd8
example: Fix argument handling

sys.argv contains the original command line arguments, while args only
contains the arguments not handled by getopt(). Currently this is no
problem since --help is the only command line option passable, which
terminates the process, so the code is never reached. Any option added
in the future will reveal the bug.

Signed-off-by: Philipp Hahn <hahn@univention.de>
examples/domain-events/events-python/event-test.py