summaryrefslogtreecommitdiff
path: root/sys/src/cmd/aux/getflags.c
AgeCommit message (Collapse)Author
2020-06-04aux/getflags: fix named rune arguments.Ori Bernstein
Flags can be runes. That means that we can't just look at p[1] to decide if we have a named argument, we need to look one rune forward. This change does that.
2020-05-07aux/getflags: remove rogue debug printkvik
2020-05-07aux/getflags: improve flagfmt parserkvik
This makes the flagfmt parser more robust and accepting a looser input language — namely by allowing whitespace around specifier fields and ignoring any empty fields. Long flagfmts can thus be pleasingly displayed: flagfmt=' a, b, c, C:cache, m:mtpt mountpoint, s:srvn srvname'
2020-04-25Backed out changeset 2737b9af622bOri Bernstein
not what I wanted to commit.
2020-04-25fix typos in time calculationOri Bernstein
the results of the time calculation were garbled -- and apparently negative on my system when testing, so the test passed when it shouldn't have.
2020-04-18aux/getflags: support named flagsOri Bernstein
When using aux/getflags, it produces unnecessarily obscure names for the flags. This allows the caller of aux/getflags to support arbitrary names.
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen