Skip to content

AntsArgParser has conditional which is always True#164

Description

@alasdair-roy

馃悳 Bug Report

In command_parse there is a line declaring target_obj=self which creates a reference to self

target_obj = self

Later arguments are added depending on if target_obj is self which always evaluates to True. It would be simpler to change the requirements of arguments to True.

How to reproduce

Step by step guide to reproduce the behaviour:

  1. target_obj assigned to self
  2. target_obj is never re-assigned or copied in any execution path

Environment

I am using the ANTS 3.2.0 environment.

Version

This bug exists in ANTS 3.2.0/head of main

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