HeadsetControl icon indicating copy to clipboard operation
HeadsetControl copied to clipboard

Should \n be added to short output?

Open floraaubry opened this issue 2 years ago • 1 comments

Description

Hello, not sure if this is wanted or not but:

flora@pop-os:~$ headsetcontrol -b -c
-2flora@pop-os:~$ 

This is what i get when shortening output. Is this something intended?

I would expect something like this:

flora@pop-os:~$ headsetcontrol -b -c
-2
flora@pop-os:~$ 

On which OS does the problem happen?

Linux

floraaubry avatar Oct 28 '23 07:10 floraaubry

It probably was done this way to make it easier to directly parse. But I agree with you, normally a Linux command should always end with \n.

However, I wouldn't change it due to backwards compatibility. Also because -c will be probably deprecated in the future in favour of https://github.com/Sapd/HeadsetControl/issues/271 (Feel free to participate in the discussion)

Sapd avatar Oct 29 '23 17:10 Sapd

Closed because short output is now deprecated in favour of JSON/YAML output

Sapd avatar Apr 12 '24 10:04 Sapd