Skip to content

Commit d08c4ac

Browse files
author
Jaymin Suthar
committed
Use short options instead of longer ones (no GNU extensions)
Signed-off-by: Jaymin Suthar <sjaymin.us@gmail.com>
1 parent ec3c296 commit d08c4ac

2 files changed

Lines changed: 22 additions & 22 deletions

File tree

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -42,35 +42,35 @@ Magisk Manager or TWRP are advised as installation mediums.
4242
If you aren't a power-user and don't wanna mess with understanding commandline
4343
(although it's explained well below), here is what minimal setup should be like,
4444

45-
su # Obtain root shell
46-
ipc --update 70 60 # Update thresholds, substitute 70 and 60
47-
ipc --daemon launch # Launch the daemon
45+
su # Obtain root shell
46+
ipc -u 70 60 # Update thresholds, substitute 70 and 60
47+
ipc -d launch # Launch the daemon
4848

4949
## Commandline
5050

5151
Usage: `ipc [<option> [<args>...]...]`
5252

5353
Options:
5454

55-
[--update] <thr_disable> <thr_enable>
55+
[-u] <thr_disable> <thr_enable>
5656

5757
Updates disable and enable threshold for Automation.
5858
resets them to defaults if no values were specified.
5959
<thr_disable> and <thr_enable> must be integers.
6060

61-
-> `ipc --update 90 80` sets disable threshold to 90
62-
and enable threshold to 80
63-
-> `ipc --update` resets thresholds to 70 60
61+
-> `ipc -u 90 80` sets disable threshold to 90 and
62+
enable threshold to 80
63+
-> `ipc -u` resets thresholds to 70 60
6464

65-
[--toggle] <status>
65+
[-t] <status>
6666

6767
Toggles Automation on or off.
6868
<status> can be 'ON' or 'OFF'.
6969

70-
-> `ipc --toggle ON` toggles Automation on
71-
-> `ipc --toggle OFF` toggles Automation off
70+
-> `ipc -t ON` toggles Automation on
71+
-> `ipc -t OFF` toggles Automation off
7272

73-
[--method] <format_str>
73+
[-m] <format_str>
7474

7575
Run a method based on format string <format_str>.
7676
Here, format string must follow the pattern:
@@ -81,25 +81,25 @@ If you aren't a power-user and don't wanna mess with understanding commandline
8181
... (%|s|m|h) defines if seeking level or timespan,
8282
... and this is the value of threshold.
8383

84-
-> `ipc --method es60` enables charging for 60 secs
85-
-> `ipc --method d%40` disables charging until 40%
86-
-> `ipc --method em30` enables charging for 30 mins
84+
-> `ipc -m es60` enables charging for 60 seconds
85+
-> `ipc -m d%40` disables charging until 40%
86+
-> `ipc -m em30` enables charging for 30 minutes
8787

88-
[--daemon] <action>
88+
[-d] <action>
8989

9090
Launches or kills the daemon.
9191
<action> can be 'launch' or 'kill'.
9292

93-
-> `ipc --daemon launch` launches the daemon
94-
-> `ipc --daemon kill` kills the daemon
93+
-> `ipc -d launch` launches the daemon
94+
-> `ipc -d kill` kills the daemon
9595

96-
[--info]
96+
[-i]
9797

9898
Print battery details and IPControl settings.
9999

100-
-> `ipc --info` prints out battery level, charging
101-
status, Automation status, disable
102-
threshold and enable threshold
100+
-> `ipc -i` prints battery level, charging status,
101+
Automation status, disable threshold
102+
and enable threshold
103103

104104
## Support
105105

service.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
# You should have received a copy of the GNU General Public License
1717
# along with IPControl. If not, see <https://www.gnu.org/licenses/>.
1818

19-
ipc --daemon launch
19+
ipc -d launch

0 commit comments

Comments
 (0)