peeringdb / peeringdb-py

PeeringDB python client
BSD 2-Clause "Simplified" License
86 stars 21 forks source link

--output-format in cli does not seem to be working #72

Open ericat opened 1 year ago

ericat commented 1 year ago

The example copied at http://peeringdb.github.io/peeringdb-py/cli/ returns an error

peeringdb -O json get net1
usage: peeringdb [-h] [--version] [-C CONFIG_DIR] {get,whois,sync,config,drop-tables} ...
peeringdb: error: argument {get,whois,sync,config,drop-tables}: invalid choice: 'json' (choose from 'get', 'whois', 'sync', 'config', 'drop-tables')

Moving the output parameter to the end of the command doesn't work (yaml is returned).

mcmanuss8 commented 1 year ago

+1 we should fix this bug