-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce anchor option #57
Conversation
@@ -414,7 +436,7 @@ int parse_config_arguments(struct mako_config *config, int argc, char **argv) { | |||
|
|||
const char *name = long_options[option_index].name; | |||
if (!apply_style_option(&global_criteria(config)->style, name, optarg) | |||
|| apply_config_option(config, name, optarg)) { | |||
&& !apply_config_option(config, name, optarg)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looked wrong to me, and I was getting a parse failure for --output
until I changed it to this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right, good catch
This adds an anchor option, to allow the user to choose which corner of the output the notifications should appear in. Usage: * --anchor topright|bottomright|bottomleft|topleft
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Is it possible to add an hyphen (e.g. top-right
) so that it'll be easier to automatically accept things like top
(to center the bar on top) in the future?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sweet, thanks! |
This adds an
anchor
option, to allow the user to choose which corner of the output the notifications should appear in.Usage:
--anchor topright|bottomright|bottomleft|topleft