On Wed, Oct 02, 2019 at 12:11:52PM +0800, Anand Jain wrote: > To help debug device scan issues, add verbose option to btrfs device scan.
The common options like --verbose are going to be added into the global command so I'd rather avoid adding them to new subcommands as this would become unnecessary compatibility issue. There's an pattern to follow, the output formats (--format). So add a definition for global verbosity options, add new GETOPT_VAL global enum values that do not clash with existing options, add relevant HELPINFO_INSERT_ text string and use it in commands where needed.