cli: add missing docstrings

parent 6a882196
......@@ -70,6 +70,7 @@ class OauTest(cmd.Cmd):
print('{} channels'.format(self.nchannels))
def do_get_attn(self, arg):
"""display attenuation value of each channel."""
if self.fd is None:
print('no active connection')
return
......@@ -78,6 +79,7 @@ class OauTest(cmd.Cmd):
print('ch {}: attn {}'.format(i, self.attn_labels[attn]))
def do_set_attn(self, args):
"""set attenuation value of channel."""
try:
ch, attn = args.strip().split()
ch = int(ch)
......
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