Skip to content

magic tcl script should use proper argument parsing #186

@proppy

Description

@proppy

currently the magic script use fixed ascending index for command line parameters:
https://github.com/efabless/mpw_precheck/blob/main/checks/xor_check/erase_box.tcl#L2-L4
which seems fragile and can cause issue if wrapping the main magic executable in another shell script.

Are we considering relying on https://core.tcl-lang.org/tcllib/doc/tcllib-1-18/embedded/www/tcllib/files/modules/cmdline/cmdline.html or reversing the indexing order so that it's more resistant to changes adding new flag to the magic invocation.

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