First cut of user CLI API 

No

On Dec 5, 2014, at 9:14 AM, Thomas A Caswell <notifications@github.com<mailto:notifications@github.com>> wrote:


In ophyd/userapi/cli_api.py:

> +
> +    if not quiet:
> +      _blink(False)
> +      for p in positioner:
> +        _print_string(p.name)
> +      print("\n")
> +
> +    # Start Moving all Positioners
> +
> +    for p, v in zip(positioner, position):
> +      p.move(v, wait = False)
> +    time.sleep(0.01)
> +
> +    flag = 0
> +    moving = True
> +    while moving or (flag < 2):


Wouldn't it be simpler to just put a final print statement after the loop? This is a perfect place for using the else clause on loops

a = 0
while a < 3:
    print(a)
    a += 1
else:
    print('done!')

—
Reply to this email directly or view it on GitHub<https://github.com/NSLS-II/ophyd/pull/23/files#r21373439>.