boomer icon indicating copy to clipboard operation
boomer copied to clipboard

Argument parsing is a mess.

Open janAkali opened this issue 2 years ago • 2 comments

I was inspecting your code to fix the "unreachable code" warning.
But honestly, you should just rewrite this part with std/parseopt

asOptionalParam() used once on a code that ALWAYS quits, so this part of template is completely useless:

        if paramVar.isNone:
          i += 1
        else:
          i += 2

janAkali avatar Oct 28 '23 01:10 janAkali