m-cli icon indicating copy to clipboard operation
m-cli copied to clipboard

Usage information not following POSIX standard

Open magnusviri opened this issue 2 years ago • 2 comments

The POSIX ~~standard~~ conventions for usage information specifies that square brackets, "[ ... ]", indicates optional arguments. It looks like most of the utilities are using square brackets to show required arguments. E.g.

usage: m airdrop [ status | on | enable | off | disable | help ]

Is there a plan to change this?

I'm currently working on adding a bunch of modules that I need (taken from a project I made that is similar to yours but using Python, which I now know was a bad choice since it's not in macOS 12.3, and I like yours better anyway). I need to know if I use POSIX usage syntax if my pull requests will be accepted.

magnusviri avatar Apr 15 '22 18:04 magnusviri

Sure, that's something that we need to change in a near future as well, feel free to contribute.

rgcr avatar Feb 13 '23 18:02 rgcr

Sorry for leaving this issue open. I have moved away from using m-cli. I like the idea but I need something that will set preferences for other users and it looked like modifying m-cli would be too much work for me to do it. I can close this issue if you'd like, or leave it open as a reminder of something you want to do. It's up to you.

magnusviri avatar Feb 13 '23 19:02 magnusviri