NRLMMD-GEOIPS / geoips

Main Geolocated Information Processing System code base with basic functionality enabled.
https://nrlmmd-geoips.github.io/geoips/
Other
13 stars 10 forks source link

Modify the CLI to output command-specific information for class-factory generated commands #645

Open evrose54 opened 1 week ago

evrose54 commented 1 week ago

Requested Update

Description

With the addition of #642 and #644 we've added class factories to reduce the amount of levels required to call certain commands, specifically geoips list interface <interface_name>, geoips get interface <interface_name>, geoips get plugin <interface_name> <plugin_name>, and geoips get family <interface_name> <family_name>. We got this to work, however now these commands all default to the same help information, which lists what will be outputted depending on the case in which the command was called.

We should address this issue and try to dynamically grab the correct help message dependent on the command that was called.

Ie. geoips get algorithms -h would provide help information about retrieving the algorithms interface, whereas geoips get algorithm single_channel would provide help information about how to retrieve a plugin from the algorithms interface. There is a minute difference but it is large enough that we should explore this issue and fix it sooner rather than later.

Background and Motivation

This issue stems from this comment on PR #644.

Code to demonstrate issue

Checklist for Completion