eqlabs / polkadot-light-client

Polkadot light client
2 stars 1 forks source link

Boost program options #39

Closed kylegranger closed 1 year ago

kylegranger commented 1 year ago

Argument parsing is now done, using the boost::program_options library. A linked library has been added to cmake. The help screen looks like this:

Options:
  -h [ --help ]                  Help screen
  -s [ --spec ] arg              Chain spec file: mandatory
  -f [ --log-file ] arg          Logger file: optional, for multi-sink logging to both console and file
  -l [ --log-level ] arg (=info) Logger level: [ off | critical | error | warn | info | verbose | debug | trace ]
kylegranger commented 1 year ago

yes, good idea. I was thinking about something similar while doing this task, not sure if to keep that in main. But yeah, keep the argument parsing in main, move the logger stuff out.

kylegranger commented 1 year ago

@GraDKh When you have a chance, please review these latest changes.