support/scripts/pkg-stats: improve argparse usage
authorVictor Huesca <victor.huesca@bootlin.com>
Fri, 19 Jul 2019 13:06:28 +0000 (15:06 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 1 Aug 2019 09:10:41 +0000 (11:10 +0200)
commit365aee0f386c4eba78d93c9bcb9e6f737ae5e3cc
treeac71e2b07ec2f45ff85d9915f1e9b5b9def24148
parent03ef9da6414ab4189723779a553c3c76dce26cb9
support/scripts/pkg-stats: improve argparse usage

Move the mutual exculsion of the '-n' and '-p' options to be part of the
parser instead of being checked in main.

Signed-off-by: Victor Huesca <victor.huesca@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
support/scripts/pkg-stats