singularity icon indicating copy to clipboard operation
singularity copied to clipboard

Improve Organization of Flags for Sign/Verify?

Open tri-adam opened this issue 3 years ago • 0 comments

As mentioned by @fnikolai in https://github.com/sylabs/singularity/issues/1095#issuecomment-1322439035, it might be useful to organize the increasing number of flags in singularity sign and singularity verify:

Perhaps something along these lines?

$ singularity sign --help
...
PGP flags:
      --whatever string                                                                                                                                                                                                      
                Some Whatever message Here
      ....

X509 flags:
      --certificate
                Path to x509 certificate
      --key
                Path to x509 key
      ....

There is something called 'NamedFlagSets' that could help us with grouping the flags. https://github.com/spf13/cobra/issues/1327

tri-adam avatar Nov 29 '22 19:11 tri-adam