On Fri, 15 Mar 2019 16:51:42 -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Mar 15, 2019 at 12:16:32PM -0700, Jakub Kicinski escreveu: > > Please do keep the current model of name val, IOW dump map *name* pids.. > > I don't have a problem with that, but what would be the problem with > supporting both: > > bpftool map dump name pids_filtered > > and: > > bpftool map dump pids_filtered > > And for that matter, even: > > bpftool map dump id 30 > > And > > bpftool map dump 30 > > Ditto for 'pinned'? > > I.e. less typing, the tool can be smart enough to figure out what is > that is being asked, i.e. is it a number? Try first it as an 'id', etc. It's error prone, we have excellent bash completions and accept prefixing (bpftool m d n pids_filtered), so typing should not be a problem.