Skip to content

Command line arguments --text, --json and --html output to file is inconsistant #1101

Description

@christophe-lunarg

vulkaninfo has a [-o , --output ] argument, which is great. I would expect that when this argument is used, the log is outputted into a file, otherwise it's outputted to stdout.

text mode
However, outputting to stdout is only happening when vulkaninfo is called using:
vulkaninfo or
vulkaninfo --text

If using vulkaninfo --text -o I got the help to be displayed which match the --help but I think the filename could be optional.

json mode
When using:
vulkaninfo --json
The vulkaninfo log is automatically written into a filename that express what GPU it matched, eg: VP_VULKANINFO_NVIDIA_GeForce_RTX_3080_Ti_553_22_0_0.json.

However, I think vulkaninfo --json should output to stdout instead to match the --text behavior and -o should be used to output to a generated name file.

html mode
When using:
vulkaninfo --html
The vulkaninfo log is automatically written into vulkaninfo.html

However, I think vulkaninfo --html should output to stdout instead to match the --text behavior and -o should be used to output to a generated name file.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions