Skip to content

Check input type for charge and charging commands to prevent confusion #104

@lodewijkvankeizerswaard

Description

@lodewijkvankeizerswaard

I sometimes mix up the difference between the charge and charging commands, which results in confusion and time loss. I think this is easily solvable by adding warnings or errors on wrong input types, i.e. strings for charge and integers for charging. This might also help new users, or users that are less familiar with the English language.

I am willing to create a quick pull request that adds type checks to these two commands.

Additional info:
When entering the non-sensical command sudo battery charge off, the output is not very helpful:

image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions