ontodev/gizmos

Standardize command line argument formats

Opened this issue · 1 comments

Some commands have all named options, others do not.

For example, tree is like:

python3 -m gizmos.tree [DATABASE] [TERM] > [OUTPUT]

(with some named options as well)

... but extract is like:

python3 -m gizmos.extract -d [DATABASE] -t [TERM] > [OUTPUT]

I think we should pick one way or the other. I don't mind either way, but I'm leaning towards option two since we have other named options and I guess it seems less confusing to have all of them with names. The downside is that we will have to update everything that currently uses gizmos.tree (and some others, like search) to fit the new command line format.

@jamesaoverton what are your thoughts?

Ok. To my mind, Gizmos is still alpha. I'd rather have breaking changes sooner than later. We're also planning a breaking change when RDFTab is updated for thick triples.

The named options are more verbose but probably better in the long run.