snmp-sim-rust icon indicating copy to clipboard operation
snmp-sim-rust copied to clipboard

Command line options for service

Open frankhorv opened this issue 3 years ago • 0 comments

The service must be able to run even without any argument provided at the command line (the default behavior). The CLI part of the service needs to be implemented in a separate folder and appropriate modules...please see the snmp-sim-cli implementation for inspiration. The main.rs should be extended by one function call to parse and handle the arguments, and that function should return a result to tell whether to run the default service functionality.-

  • [ ] All config will be in YAML file, so maybe all we need on the is a “help” message that tells the user about the YAML file (i.e. where it lives)
  • [ ] Option to generate a default config file =>
    • generate the base.yaml and write it to the destination folder (mandatory parameter)
    • don't overwrite the base.yaml by default => abort with error, if the file exists
    • add y argument to overwrite the base.yaml, if exists
  • [ ] Man page generation using clap_mangen

frankhorv avatar May 05 '22 08:05 frankhorv