Uploaded image for project: 'Commons CLI'
  1. Commons CLI
  2. CLI-298

Define CLI options via configuration file

    XMLWordPrintableJSON

Details

    Description

      Create a configuration that enables users to define CLI options via a configuration file. Such configuration would normally pre-defined and bundled inside the executable jar running the application. This would reduce the amount of code required to define command line options and introduce the ability to do a lot of the checking a user does (such as converting values to integers, files, checking if integers are above/below a certain amount, checking that files or directories do/don't exist etc.) For security purposes, at compile time calculate an MD5 for the application, if this doesn't match at runtime warn of corrupted file exception. Also add I18N since this will be driven via the user experience for exception messages.

      So far I've catered for basic options that utilise strings.

      Code already started with a pull request at https://github.com/zendawg/commons-cli underneath the branch named "cli-configuration".

      Apologies in advance, never contributed to Apache SWF before.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Zendawg Richard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 336h
                336h
                Remaining:
                Remaining Estimate - 336h
                336h
                Logged:
                Time Spent - Not Specified
                Not Specified