Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage information not following POSIX standard #185

Open
magnusviri opened this issue Apr 15, 2022 · 2 comments
Open

Usage information not following POSIX standard #185

magnusviri opened this issue Apr 15, 2022 · 2 comments

Comments

@magnusviri
Copy link

magnusviri commented Apr 15, 2022

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.

@rgcr
Copy link
Owner

rgcr commented Feb 13, 2023

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

@magnusviri
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants