# layman -d qiaomuf mozilla Usage: layman (-a|-d|-s|-i) (OVERLAY|ALL) layman -f [-o URL] layman (-l|-L|-S) layman: error: ArgsParser(): Unhandled parameters: "mozilla" # layman -d qiaomuf * Deleting selected overlays,... * Deleting directory "/var/lib/layman/qiaomuf" Would be nice if you were allowed to add or delete multiple items in one invocation. app-portage/layman-2.0.0_rc3
"CC: brian.dolbec@gmail.com did not match anything", said bugzilla. Maybe fix gentoo-x86/app-portage/layman/metadata.xml now?
Layman already does, but due to the way argspaser works it needs to have the switch for each one. It also supports multiple actions in the same line. layman -d qiaomuf -d mozilla -a sunrise -s gentoo-guis -i x11 I'll extend the usage example to show that. I'll also have someone update metadata.xml with my new @gentoo email
I've added more info to the usage as follows: _USAGE = """ layman (-a|-d|-s|-i) (OVERLAY|ALL) # it also supports multiple actions layman (-a|-d|-s|-i) (OVERLAY|ALL) [ [(-a|-d|-s|-i) (OVERLAY)] ...] layman -f [-o URL] layman (-l|-L|-S)""" git commit: http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=46444286c8d70797964dc80dd70e42a0f2d35723 Also, just to explain a bit more on argsparser and multiple values for and argument. argsparser.add_argument() takes an narg param that will handle any number of values and return a list of them. Unfortunately when using optiongroups like layman does, the add_option()'s narg will not accept the '+', '*' values like add_argument(). It only accepts integers File "/usr/lib64/python2.7/optparse.py", line 1540, in _process_short_opts % (opt, nargs)) TypeError: %d format: a number is required, not str I had tried fix to take multiple values after I took over layman development without success, and again just now with the newest python's. Again without success.
Ok, I hadn't realized the difference between optparse and argparse. I was inadvertently mixing them up. Since optparse is now deprecated, I'll migrate it to argparse so that it will work correctly.
This has been fixed on my github repo for layman and will be moved to the master branch of g.o.g.o soon enough. Until then, I'll keep this bug open.
Available in layman-2.2.0, closing as fixed.