Thread (1 message) 1 message, 1 author, 2016-06-16

Re: [PATCH 1/4] builtin/interpret-trailers.c: allow -t

From: Junio C Hamano <hidden>
Date: 2016-06-16 02:18:41

"Michael S. Tsirkin" [off-list ref] writes:
Aren't there other cases where a short option needs to be
converted to a long one?
As I already said, making internal call to libified part (perhaps in
trailer.c) would make this part of conversation a moot point, but in
general you can find

	argv_push(&child.args, "cmd2");
	if (... some condition that involves variables parsed out ...
            ... by parse_options() of implementation of cmd1 ...)
		argv_push(&child.args, "--option-for-cmd2");
	...
        run_command(&child);

in implementation of cmd1 that calls out to cmd2.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help