Skip to content

Conversation

@pmuetschard
Copy link
Member

Makes the --at and --frame flags repeatable and adds a --draws flag to request a screenshot of every draw call.

}
s.Bind(fullname, field.Addr().Interface(), usage)

if tags.Get("repeated") == "true" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need the repeated tag? Isn't having the type a slice enough info?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Changed it so that slices are automatically repeated flags.

Flag values that are slices are treated as repeatable flags, where
successive instances will append the new value to the slice.
Makes the `--at` and `--frame` arguments repeatable.
When combined with `--frame`, `--draw` will cause `gapit screenshot` to
create a screenshot of every draw call in the frame.
@pmuetschard pmuetschard merged commit 3f4325e into google:master Oct 2, 2018
@pmuetschard pmuetschard deleted the gapit branch October 2, 2018 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants