Skip to content
Permalink
Browse files

Handle negative coordinates. Should fix #64

  • Loading branch information...
ocourtin committed Jul 9, 2019
1 parent 81b891a commit 6ddc417c0d5c84935ed250d34ded74eacb052ba8
Showing with 2 additions and 0 deletions.
  1. +2 −0 robosat_pink/tools/__main__.py
@@ -26,6 +26,8 @@ def main():

os.environ["COLUMNS"] = str(shutil.get_terminal_size().columns) # cf https://bugs.python.org/issue13041
fc = lambda prog: argparse.RawTextHelpFormatter(prog, max_help_position=40, indent_increment=1) # noqa: E731
for i, arg in enumerate(sys.argv): # handle negative values cf #64
if (arg[0] == '-') and arg[1].isdigit(): sys.argv[i] = ' ' + arg
parser = argparse.ArgumentParser(prog="rsp", formatter_class=fc)
subparser = parser.add_subparsers(title="RoboSat.pink tools", metavar="")

0 comments on commit 6ddc417

Please sign in to comment.
You can’t perform that action at this time.