summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/msg_client.py
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2013-09-16 17:43:35 (GMT)
committerBritney Fransen <brfransen@gmail.com>2013-09-16 17:43:35 (GMT)
commit5e44c4adc1cc8bd90226ad3c078c4c3924bd8da6 (patch)
tree56f756fcc06f4f63e3daa42481bb81957bb78843 /abs/core/LinHES-system/msg_client.py
parentab7fa7b3c11b2cf1cfe49cb66149ef3d0d67b6b7 (diff)
downloadlinhes_pkgbuild-5e44c4adc1cc8bd90226ad3c078c4c3924bd8da6.zip
linhes_pkgbuild-5e44c4adc1cc8bd90226ad3c078c4c3924bd8da6.tar.gz
linhes_pkgbuild-5e44c4adc1cc8bd90226ad3c078c4c3924bd8da6.tar.bz2
LinHES-system: msg_client.py: update usage text
diskspace.sh: remove old osd settings
Diffstat (limited to 'abs/core/LinHES-system/msg_client.py')
-rwxr-xr-xabs/core/LinHES-system/msg_client.py20
1 files changed, 12 insertions, 8 deletions
diff --git a/abs/core/LinHES-system/msg_client.py b/abs/core/LinHES-system/msg_client.py
index 54c2e54..8c5e3c4 100755
--- a/abs/core/LinHES-system/msg_client.py
+++ b/abs/core/LinHES-system/msg_client.py
@@ -33,8 +33,8 @@ def send_message(message):
def usage():
line = '''
Help screen:
- msg_client.py is used to add,remove, or list items in the queue of messages that
- will be displayed on screen. Optionaly messages can be given an identifier or "tag".
+ msg_client.py is used to add, remove, or list items in the queue of messages that
+ will be displayed on screen. Optionally messages can be given an identifier or "tag".
This identifier does not have to be unique.
Items are processed in the order they arrive, based off their slot number.
@@ -43,19 +43,23 @@ def usage():
ADD:
- To add items to the queue:
- msg_client.py --msg "My first message" --tag "tag1"
+ To add items to the queue:
+ msg_client.py --msg "My first message" --tag "tag1"
+
+ To add a message with a line break use \\n:
+ msg_client.py --msg "My first\\nmessage" --tag "tag1"
+
REMOVE:
Removing items are based off the tag.
To remove all items from the queue that match the tag "tag1":
- msg_client.py --clear --tag tag1
+ msg_client.py --clear --tag "tag1"
To remove all items from the queue:
- msg_client.py --clear
+ msg_client.py --clear
- Listing items in the queue or to get the total count:
+ Listing items in the queue or to get the total item count:
msg_client.py --print_list
> -------------
> msg : slot 1
@@ -75,7 +79,7 @@ if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument('--tag', action='store', dest='tag',help='message tag')
- parser.add_argument('--timeout', action='store', dest='timeout',help='time to display message')
+ parser.add_argument('--timeout', action='store', dest='timeout',help='time to display message in seconds')
action = parser.add_mutually_exclusive_group(required=True)
action.add_argument('--msg', action='store', dest='msg', help='Add message to the queue')
action.add_argument('--clear', action='store_true', help='Remove message from queue that match tag')