terra-sync / cnc

Seamless Database Replication tool
GNU General Public License v3.0
4 stars 2 forks source link

main: resolve segfault when an unknown non-option argument is given #27

Closed charmitro closed 5 months ago

charmitro commented 5 months ago

Previous:

    $ ./cnc dsadsa
    Segmentation fault

Current:

    $ ./cnc dsadsa
    Non-option argument: dsadsa
    Usage: cnc [options]
    Options:
      -f, --config-file <file>  Specify the config file to use
      -v, --verbose             Run in verbose mode
      -h, --help                Print this help message