From 5b70f94827b365b44b0d28a8e3768fa9eb4268ca Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 8 May 2020 18:43:03 +0200 Subject: main/client: be POSIXLY_CORRECT when parsing command line This means command line parsing stops when it encounters the first nonoption argument. The result is that one no longer need to use '--' to ensure arguments are passed to the shell/command, instead of parsed by foot. That is, instead of foot -- sh -c true one can now do foot sh -c true Arguments to foot *must* go before the command: foot --fullscreen sh -c true --- doc/foot.1.scd | 6 +++--- doc/footclient.1.scd | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'doc') diff --git a/doc/foot.1.scd b/doc/foot.1.scd index 93c28e4f..1874c0cb 100644 --- a/doc/foot.1.scd +++ b/doc/foot.1.scd @@ -5,10 +5,10 @@ foot - Wayland terminal emulator # SYNOPSIS *foot* [_OPTIONS_]++ -*foot* [_OPTIONS_] -- <_command_> +*foot* [_OPTIONS_] <_command_> [_COMMAND OPTIONS_] -All trailing (non-option) arguments are treated as a command to -execute (instead of the shell). +All trailing (non-option) arguments are treated as a command, and its +arguments, to execute (instead of the default shell). # OPTIONS diff --git a/doc/footclient.1.scd b/doc/footclient.1.scd index 83c00c77..9a43b26b 100644 --- a/doc/footclient.1.scd +++ b/doc/footclient.1.scd @@ -5,10 +5,10 @@ footclient - start new terminals in a foot server # SYNOPSIS *foot* [_OPTIONS_]++ -*foot* [_OPTIONS_] -- +*foot* [_OPTIONS_] <_command_> [_COMMAND OPTIONS_] -All trailing (non-option) arguments are treated as a command to -execute (instead of the shell). +All trailing (non-option) arguments are treated as a command, and its +arguments, to execute (instead of the default shell). # OPTIONS -- cgit v1.3