]> git.pond.sub.org Git - empserver/commit
Clean up bmap commands' flags argument
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 10 Apr 2011 05:43:04 +0000 (07:43 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 14 Apr 2011 18:21:22 +0000 (20:21 +0200)
commita00f9e200e610920bd59e5fa9537902149143424
tree6289d4046b63b9a0fc149ba0016acf02eff771f3
parent457f797972f4b41a33d9dbdbe20a0710aeaa34e8
Clean up bmap commands' flags argument

parse_map_flags() silently truncates map flags after the first 't' or
'r'.  This makes it accept arguments "true" and "revert".  However, it
also breaks the perfectly sensible argument "ts", which should show
ships just like "st", but doesn't.

info bmap & friends document arguments "true" and "revert", and also
suggest flags 't' and 'r'.  What a mess.

Make argument "revert" a special case.  Deprecate flag 'r', and clean
up truncation there.

Don't truncate after flag 't'.  If any bad flags follow, ignore
everything after 't', but deprecate that usage.
info/bmap.t
info/lbmap.t
info/nbmap.t
info/pbmap.t
info/sbmap.t
info/sharebmap.t
src/lib/subs/maps.c