Commit 4992d891 authored by Markus's avatar Markus

improved help text, fixed printing

parent d3669436
......@@ -34,18 +34,19 @@ if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Access Peoplecounter in\
Hackspace and create notification or print ')
parser.add_argument("-n","--notify",action="store_true",help="Create a notification using\
libnotify (default=False) enable with -n",default=False)
parser = argparse.ArgumentParser(description='Access peoplecounter in \
Hackspace and create notification or print the information ')
parser.add_argument("-n","--notify",action="store_true",help="Create a \
notification using dbus (default=False) enable with -n",default=False)
parser.add_argument("-p","--printing",action="store_false",help="Enable or disable\
printing (default=True) disable with -p",default=True)
parser.add_argument("-u","--show_user",action="store_false",help="show count\
of users or device(default is user toggle with -u)",default=True)
printing (default=enabled) disable printing with -p",default=True)
parser.add_argument("-u","--show_user",action="store_false",help="Show count\
of users or devices in the hackspace (default=user) toggle with -u)",
parser.add_argument("-d","--daemonize",action="store_true",help="Daemonize the\
script (default=False) enable with -d set inteval with -i",default=False)
script (default=False) enable with -d set interval with -i",default=False)
parser.add_argument("-i","--interval",type=int,help="Interval for\
update default=30",default=30)
update in seconds (default=30)",default=30)
args = parser.parse_args()
if args.daemonize == True :
......@@ -123,7 +124,7 @@ if __name__ == '__main__':
##print count
if args.printing == True :
if args.show_user == False :
print ("HackHro Users: ",users.__len__())
print ("HackHro Users: %s " % users.__len__(),end="")
except NameError:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment