From: Uwe Hermann Date: Thu, 20 Nov 2014 21:04:56 +0000 (+0100) Subject: sigrok-meter: Add --help example with multiple devices. X-Git-Url: http://sigrok.org/gitweb/?p=sigrok-meter.git;a=commitdiff_plain;h=8fa010184c5a1fa49f0ed483ff0e8ee65f886dc7 sigrok-meter: Add --help example with multiple devices. --- diff --git a/sigrok-meter b/sigrok-meter index 884ad2d..dc34745 100755 --- a/sigrok-meter +++ b/sigrok-meter @@ -32,9 +32,10 @@ def parse_cli(): parser = argparse.ArgumentParser( description='Simple sigrok GUI for multimeters and dataloggers.', epilog=textwrap.dedent('''\ - The DRIVER string is the same as for sigrok-cli(1). The nth - CONFIG is applied to the nth DRIVER. If there are more drivers - than configs, the remaining drivers use the default configuration. + The DRIVER string is the same as for sigrok-cli(1). Multiple + DRIVER and CONFIG items can be supplied. The nth CONFIG is applied + to the nth DRIVER. If there are more drivers than configs, the + remaining drivers use the default configuration. Examples: @@ -44,6 +45,10 @@ def parse_cli(): %(prog)s --driver demo:analog_channels=1 \\ --config samplerate=10 + + %(prog)s --driver voltcraft-k204:conn=/dev/ttyUSB0 \\ + --driver uni-t-ut61d:conn=1a86.e008 \\ + --driver uni-t-ut61e-ser:conn=/dev/ttyUSB1 '''), formatter_class=argparse.RawDescriptionHelpFormatter)