guardmedm --status incorrectly displays system
When using the command guardmedm --status <system name>
it creates a "status line" for each character e.g. using the command:
guardmedm --status ITF_LOCK
I see the following:
where a status line is created for each character.
This is because the nargs='?'
here, meaning that the positional arguments will be converted into a single string. This creates a problem when guardmedm
loops over args.system
here. So I can see two ways to solve this:
- Have
guardmedm
separately parse thesystem
argument withnargs='+'
- Only allow
guardmedm --status
to only see the status of a single system.
@jameson.rollins what are your thoughts on this?