Project

General

Profile

Task #17999

Milestone #17719: Booster operational test of one crate alongside existing BPM system

Milestone #17998: Improvements to bpmcli

Refactor to use getopt

Added by John Diamond over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Start date:
10/20/2017
Due date:
% Done:

100%

Estimated time:
8.00 h
Spent time:
Duration:

Description

Arguments to bpmcli commands should be parsed via getopt.

History

#1 Updated by John Diamond over 1 year ago

  • % Done changed from 0 to 50

Created an abstract base class for CLI commands: CLICommand. The base class handles command-line option parsing and requires ::helpShow() and ::run() methods be defined by the derived classes.

Made some effort towards implementing 'bpmcli dump' in this new framework.

#2 Updated by John Diamond over 1 year ago

  • Status changed from Work in progress to Resolved
  • % Done changed from 50 to 100

Was successful in integrating getopt into CLICommand and CLIDumpCommand. All of the CLI commands should use this framework going forward.



Also available in: Atom PDF