RIOT-OS / applications

Some useful RIOT applications
GNU Lesser General Public License v2.1
41 stars 36 forks source link

sniffer: make serial/socket command optional #38

Closed miri64 closed 6 years ago

miri64 commented 6 years ago

First of all: I know this is very hacky, but sadly there is no straight-forward (and portable) way with argparse to make a subcommand optional, like it is the case e.g. with many git commands.

However, this allows now also do just type

./tools/sniffer /dev/ttyACM0 112500 26

Depends on #37

smlng commented 6 years ago

please squash

smlng commented 6 years ago

and rebase after #37 was merged.

smlng commented 6 years ago

would prefer #40 though

miri64 commented 6 years ago

Ok