Re: [PATCH 19/28] qemu-img: resize: do not always eat last argument

2024-02-26 Thread Michael Tokarev
26.02.2024 17:52, Daniel P. Berrangé wrote: On Thu, Feb 22, 2024 at 12:16:00AM +0300, Michael Tokarev wrote: 'qemu-img resize --help' does not work, since it wants more arguments. Also it -size is only recognized as a very last argument, but it is common for tools to handle other options after

Re: [PATCH 19/28] qemu-img: resize: do not always eat last argument

2024-02-26 Thread Daniel P . Berrangé
On Thu, Feb 22, 2024 at 12:16:00AM +0300, Michael Tokarev wrote: > 'qemu-img resize --help' does not work, since it wants more > arguments. Also it -size is only recognized as a very last > argument, but it is common for tools to handle other options > after positional arguments too. > > Tell get

[PATCH 19/28] qemu-img: resize: do not always eat last argument

2024-02-21 Thread Michael Tokarev
'qemu-img resize --help' does not work, since it wants more arguments. Also it -size is only recognized as a very last argument, but it is common for tools to handle other options after positional arguments too. Tell getopt_long() to return non-options together with options, and process filename