text: /**
   * clisquare.cpp
   *
   * Copyright (c) 2018-2019 Peter Lenkefi
   * Distributed under the MIT License.
   *
   * Example usage of the sample library, a simple Command-Line-Interface
   * application that squares the argument and prints it.
   */
  
  #include <cstdint>
  #include <cstdio>
  #include <cstdlib>
  #include <sample_library/sample_lib.hpp>
  
  int main(int argc, char* argv[])
  {
      if (argc != 2) {
          std::printf("Usage: %s <integer>\n", argv[0]);
          return 1;
      }
      char* end;
      std::int64_t num = std::strtol(argv[1], &end, 10); // NOLINT
      std::int64_t sq = samplib::square(num);
      std::printf("%ld\n", sq);
      return 0;
  }
  