Closed arranstewart closed 2 years ago
Actually, it looks like a bigger hunk of code is duplicated - from about line 24 to about line 64 seems to duplicate later code. (Or vice versa.)
Thanks for bringing this up! We're looking into the issue now and will keep you updated.
Expected Behavior
It should be possible to run clients/tango-cli.py.
Actual Behavior
It's not possible to run clients/tango-cli.py.
As far as I can tell, it will always raise an exception:
Steps to Reproduce the Behavior
Run clients/tango-cli.py.
e.g.
cd clients && python3 tango-cli.py
.Some suggestions
Correct me if I'm wrong, but didn't commit 49b1cf7784dd0d3e6fa816d98f8a0147b3d18e6a render tango-cli.py incapable of ever being run without exception? From the commit comments, I take it the commit was supposed to make purely cosmetic changes, but instead, it duplicates the following blocks of code in tango-cli.py:
Lines 24-36:
Lines 65-77:
Having both of these will ensure that
argparse
always throws an exception; I assume the first occurrence should not have been added.A test case that simply runs
tango-cli.py --help
and checks that it exits without error would pick up the current issue.