Skip to content

Commit

Permalink
ovs-tcpundump: exit when getting version
Browse files Browse the repository at this point in the history
Running 'ovs-tcpundump -V' will cause ovs-tcpundump to start processing on
stdin.  Instead, print the version and exit.

Signed-off-by: Aaron Conole <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
apconole authored and blp committed Oct 23, 2019
1 parent 15ba075 commit c691cff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utilities/ovs-tcpundump.in
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ if __name__ == "__main__":
usage()
elif key in ['-V', '--version']:
print("ovs-tcpundump (Open vSwitch) @VERSION@")
sys.exit(0)
else:
sys.exit(0)

Expand Down

0 comments on commit c691cff

Please sign in to comment.