Skip to content

Gstat unnecessarily claims that switches are incompatible with -header #8018

Open
@mrotteveel

Description

@mrotteveel

In general, gstat will always output the header information, yet when -header is explicitly combined with one of the other options, gstat will output either error:

option -h is incompatible with options -a, -d, -i, -r, -s and -t

or - when combined with -encryption:

option -e is incompatible with options -a, -d, -h, -i, -r, -s and -t

This seems unnecessarily restrictive. When -header is specified combined with any of the other primary switches, -all, -data, -index or -encryption, it should just be silently ignored as gstat will display the header anyway. When combined with only any of the secondary switches, -record, -system or -table, should it output an error (because then the default of -all is switched off, and a user should explicitly request -all, -data or -index).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions