Bug #9784
closedAll tools should be named consistently and argument parsing should be better
0%
Description
Slowly some of the tools like ceph_objectstore_tool have migrated to have underscores in the name. But I noticed some others haven't:
Some of the commands I noticed:
ceph-osdomap-tool
ceph-monstore-tool
ceph-kvstore-tool
I assume we want to keep ceph-osd, ceph-mon to be named with dashes since they aren't executed by the user directly.
I fixed some of the argument handling in wip-toolfixes in my personal git hub repo
Updated by Samuel Just over 9 years ago
ceph-objectstore-tool. Generally, dashes for things people actually use, underscores for tests.
Updated by Sage Weil over 9 years ago
any tool that a user uses should have -'s. the source files should always use _'s.. just the final executable uses -'s.
a zillion unit tests and such use _'s. imo that's okay, and perhaps _ vs - is a way to distinguish between the two. i don't think it's worth converting any test binary names.
but for anything user visible.. -'s ftw!