Skip to content

Commit

Permalink
provide default for verbose option, fixes #78
Browse files Browse the repository at this point in the history
Looks like py2 defaults counts to 0 but 3.x sets None
  • Loading branch information
sibson committed Dec 3, 2016
1 parent 0a05c2a commit f995fd3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion tests/unit/test_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ def test_just_port(self):
assert port == 1111



class TestVNCDoCLIClient(unittest.TestCase):

def setUp(self):
Expand Down
2 changes: 1 addition & 1 deletion vncdotool/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def add_standard_options(parser):
parser.add_option('--logfile', action='store', metavar='FILE',
help='output logging information to FILE')

parser.add_option('-v', '--verbose', action='count',
parser.add_option('-v', '--verbose', action='count', default=0,
help='increase verbosity, use multple times')

return parser
Expand Down

1 comment on commit f995fd3

@qemu-buro-point-dpkg
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, how about maintaining a debian packaging btw.. Is there a proper communication. Your tool is for what I as a beginner in this field know, got to be one with a leeding unique feature among gui aware toolary around sikuli. The makro recorder in it. You are quite a important service these days, for even debian testing ... Therefore thank you btw. And thanks for fixing. This. I will stay probably with py 2 in the meanwhile like debian does, in the meanwhile.

Please sign in to comment.