Jan Kundrát | dc2b072 | 2018-03-02 14:13:37 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2018 CESNET, https://photonics.cesnet.cz/ |
Jan Kundrát | a274044 | 2018-03-22 16:56:43 +0100 | [diff] [blame^] | 3 | * Copyright (C) 2018 FIT CVUT, https://fit.cvut.cz/ |
Jan Kundrát | dc2b072 | 2018-03-02 14:13:37 +0100 | [diff] [blame] | 4 | * |
| 5 | * Written by Jan Kundrát <jan.kundrat@cesnet.cz> |
| 6 | * |
| 7 | */ |
| 8 | |
| 9 | #include <docopt.h> |
| 10 | #include <string> |
| 11 | #include "NETCONF_CLI_VERSION.h" |
| 12 | |
| 13 | static const char usage[] = |
| 14 | R"(CLI interface to remote NETCONF hosts |
| 15 | |
| 16 | Usage: |
| 17 | netconf-cli (-h | --help) |
| 18 | netconf-cli --version |
| 19 | )"; |
| 20 | |
| 21 | int main(int argc, char* argv[]) |
| 22 | { |
| 23 | auto args = docopt::docopt(usage, |
| 24 | {argv + 1, argv + argc}, |
| 25 | true, |
| 26 | "netconf-cli " NETCONF_CLI_VERSION, |
| 27 | true); |
| 28 | return 0; |
| 29 | } |