mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-08-27 00:36:02 +00:00
e63dc805cf
swupd supports global flags and supports local flags that are specific to subcommands. Flags that are specific to subcommands can be reused in a different subcommand. Global flags should be unique and should not be reused as local flags to avoid conflicts. This commit adds a bash script that checks that the flags currently used in swupd are valid (have no conflicts with other flags from the same command or with the global flags). This script will be run as part of the build process so in case an invalid flag is found the build will be stopped. Alternatively, the script can be used by developers to validate a new flag during the implementation time. Signed-off-by: Castulo Martinez <castulo.martinez@intel.com>