framer
Set the frame number to num or return the current frameno
usage: framer: [-h, --help] num
#! @KPYTHON@
from KCWI import Procs
import argparse
# parsing arguments
description = "Set the frame number to num or return the current frameno"
parser = argparse.ArgumentParser(description=description)
parser.add_argument('num', nargs="?",default=None,help='value to set frameno to')
if __name__=="__main__":
args = parser.parse_args()
if args.num==None:
frame = Procs.frame(channel='red')
sys.stdout.write(str(frame)+"\n")
else:
Procs.frame(channel='red',num=args.num)