You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Gézapeti (Jira)" <ji...@apache.org> on 2020/03/02 21:45:00 UTC

[jira] [Assigned] (DAFFODIL-1958) Remove Scallop configuration code redundency

     [ https://issues.apache.org/jira/browse/DAFFODIL-1958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gézapeti reassigned DAFFODIL-1958:
----------------------------------

    Assignee: Gézapeti

> Remove Scallop configuration code redundency
> --------------------------------------------
>
>                 Key: DAFFODIL-1958
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1958
>             Project: Daffodil
>          Issue Type: Improvement
>          Components: CLI
>    Affects Versions: 2.1.0
>            Reporter: Steve Lawrence
>            Assignee: Gézapeti
>            Priority: Minor
>              Labels: beginner
>
> Many of the options in the Scallop configuration in Main.scala is duplicate. For example, all subcommands except for "test" accept the "-s" option. The configuration for the -s is currently duplicated among all the commands. To clean up this code, we should create traits that contain shared options and mix them into the subcommands. See the scallop wiki for how to create traits and mix them in to work with Scallop:
> https://github.com/scallop/scallop/wiki/Subcommands#sharing-arguments-with-inheritance



--
This message was sent by Atlassian Jira
(v8.3.4#803005)