All of lore.kernel.org
 help / color / mirror / Atom feed
* About more loose parameter sequence requirement
@ 2018-06-14  7:17 Qu Wenruo
  2018-06-18 11:34 ` David Sterba
  0 siblings, 1 reply; 13+ messages in thread
From: Qu Wenruo @ 2018-06-14  7:17 UTC (permalink / raw)
  To: David Sterba, linux-btrfs


[-- Attachment #1.1: Type: text/plain, Size: 773 bytes --]

Hi David,

I understand that btrfs-progs introduced restrict parameter/option order
to distinguish global and sub-command parameter/option.

However it's really annoying if one just want to append some new options
to previous command:

E.g.
# btrfs check /dev/data/btrfs
# !! --check-data-csum

The last command will fail as current btrfs-progs doesn't allow any
option after parameter.


Despite the requirement to distinguish global and subcommand
option/parameter, is there any other requirement for such restrict
option-first-parameter-last policy?

If I could implement a enhanced getopt to allow more loose order inside
subcomand while still can distinguish global option, will it be accepted
(if it's quality is acceptable) ?

Thanks,
Qu


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-06-20  0:21 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-14  7:17 About more loose parameter sequence requirement Qu Wenruo
2018-06-18 11:34 ` David Sterba
2018-06-18 11:40   ` Qu Wenruo
2018-06-18 12:02     ` David Sterba
2018-06-18 13:05       ` Qu Wenruo
2018-06-19 14:47         ` David Sterba
2018-06-19 23:18           ` Qu Wenruo
2018-06-20  0:16             ` Qu Wenruo
2018-06-20  0:21         ` Hans van Kranenburg
2018-06-19  4:34       ` Qu Wenruo
2018-06-19  5:03         ` Qu Wenruo
2018-06-18 11:44   ` Hugo Mills
2018-06-18 12:24     ` Paul Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.