osrf / dynamic_message_introspection

Apache License 2.0
33 stars 19 forks source link

simple cli parsing #2

Closed koonpeng closed 4 years ago

koonpeng commented 4 years ago

a bare minimum cli, just enough to get things to work.

gbiggs commented 4 years ago

Using getopt would probably be more robust.

koonpeng commented 4 years ago

I started off using cxxopts library but scrapped that as I realize all the args we have currently are positionals. From what I understand from the getopt manual, it doesn't parse "commands" so I'm not really sure how I can use it, seems like it would just return -1 since there are no options.