Uploaded image for project: 'Bitrepository'
  1. Bitrepository
  2. BITMAG-1077

An invalid checksum algorithm in the -R should cause the list of defined algorithm to be show

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • None
    • None
    • Commandline client
    • None
    • Bit Sprint 1

    Description

      Currently the user has to refer to the documentation to view the available options. It would be much user friendly to print the valid algorithm options in response to a invalid argument, same as for the pillar and colelction arguments

      The current error message

      Invalid argument: No enum constant org.bitrepository.bitrepositoryelements.ChecksumType.sha1
      


      should at the same time be changed to to something more human readable, f.ex sha1 is not a valid checksum type, valid values are: .......

      Should also consider ignoring casing in the the argument -R when looking it up in the ChecksumType list. There should not ne any difference between sha, SHA1 and sHa1.

      Attachments

        Issue Links

          Activity

            People

              masj Mathias Søby Jensen
              mss Mikis Seth Sørensen (Inactive)
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: