@Test
@Parameters({

    "--debug workflow ls",
    "workflow --debug ls",
    "workflow ls --debug",
})
public void testDebugOptionIsGlobal(final String argLine) {
  when(client.workflows()).thenReturn(CompletableFuture.completedFuture(Collections.emptyList()));
  assertThat(Try.run(() -> CliMain.run(cliContext, argLine.split(" "))).isSuccess(), is(true));
}