Skip to content

Argument parsing is a mess. #131

@janAkali

Description

@janAkali

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions