macro_rules! capture_pane {
    (@cmd ($cmd:expr) -a, $($tail:tt)*) => { ... };
    (@cmd ($cmd:expr) -e, $($tail:tt)*) => { ... };
    (@cmd ($cmd:expr) -p, $($tail:tt)*) => { ... };
    (@cmd ($cmd:expr) -P, $($tail:tt)*) => { ... };
    (@cmd ($cmd:expr) -q, $($tail:tt)*) => { ... };
    (@cmd ($cmd:expr) -C, $($tail:tt)*) => { ... };
    (@cmd ($cmd:expr) -J, $($tail:tt)*) => { ... };
    (@cmd ($cmd:expr) -N, $($tail:tt)*) => { ... };
    (@cmd ($cmd:expr) -T, $($tail:tt)*) => { ... };
    (@cmd ($cmd:expr) -b $buffer_name:expr, $($tail:tt)*) => { ... };
    (@cmd ($cmd:expr) -E $end_line:expr, $($tail:tt)*) => { ... };
    (@cmd ($cmd:expr) -S $start_line:expr, $($tail:tt)*) => { ... };
    (@cmd ($cmd:expr) -t $target_pane:expr, $($tail:tt)*) => { ... };
    (@cmd ($cmd:expr)) => { ... };
    () => { ... };
    (($cmd:expr), $($tail:tt)*) => { ... };
    ($($tail:tt)*) => { ... };
}
Expand description

§Manual

tmux ^3.4:

capture-pane [-aAepPqCJNT] [-b buffer-name] [-E end-line] [-S start-line] [-t target-pane]
(alias: capturep)

tmux ^3.1:

capture-pane [-aepPqCJN] [-b buffer-name] [-E end-line] [-S start-line] [-t target-pane]
(alias: capturep)

tmux ^2.4:

capture-pane [-aepPqCJ] [-b buffer-name] [-E end-line] [-S start-line] [-t target-pane]
(alias: capturep)

tmux ^1.8:

capture-pane [-aepPq] [-b buffer-name] [-E end-line] [-S start-line] [-t target-pane]
(alias: capturep)

tmux ^1.5:

capture-pane [-b buffer-index] [-E end-line] [-S start-line] [-t target-pane]
(alias: capturep)

tmux ^1.2:

capture-pane [-b buffer-index] [-t target-pane]
(alias: capturep)