SAP / macOS-enterprise-privileges

For Mac users in enterprise environments, this application gives users control over the administration of their machine by elevating their level of access to administrator privileges on macOS. Users can set a timeframe in the application's settings to perform specific tasks, such as installing or removing an application.
Apache License 2.0
1.4k stars 150 forks source link

CLI Short Flags #36

Closed 4dhyperplane closed 1 week ago

4dhyperplane commented 2 years ago

It would be very handy to be able to do short flags for the cli implementation, to avoid needless typing for regular CLI users.

Something like this:

% /Applications/Privileges.app/Contents/Resources/PrivilegesCLI

Usage: PrivilegesCLI <arg>

Arguments:   --add / -a       Adds the current user to the admin group
             --remove / -r    Removes the current user from the admin group
             --status / -s    Displays the current user's privileges
mthielemann commented 5 months ago

This will be implemented in Privileges 2.0.0, which will be available later this year.