Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-20955

Refactor commandline parsing to allow reuse

    Details

    • Type: Story
    • Status: Won't Fix
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: cp_pipe, pipe_base
    • Labels:
      None
    • Templates:
    • Team:
      Data Access and Database

      Description

      In pipe.base.IdValueAction has code to parse id strings from the command line, but it's mixed in with argparse deeply enough that people who need to write custom TaskRunners can't use it.

      I pulled this code out into cp_pipe/utils.py as parseCmdlineNumberString() but this is somewhat duplicative, and should therefore be removed, with this functionality neatly factored out in pipe_base so that it, and cp_pipe can use it.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mfisherlevine Merlin Fisher-Levine
              Watchers:
              Jim Bosch, John Swinbank, Merlin Fisher-Levine, Robert Lupton
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel