box.c 759 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* SPDX-License-Identifier: GPL-3.0-or-later */
  2. /*
  3. * Copyright (C) 2022, 2023 Ferass El Hafidi <vitali64pmemail@protonmail.com>
  4. */
  5. /* START */
  6. #include <string.h>
  7. #include <unistd.h>
  8. #include <libgen.h>
  9. #include <stdio.h>
  10. /* END */
  11. /* START */
  12. int main(int argc, char *argv[]) {
  13. if (!strcmp(basename(argv[0]),"box") && argc > 1) {
  14. argc--;
  15. argv++;
  16. } if(0);
  17. /* END */
  18. /* START */
  19. else if (!strcmp(basename(argv[0]), "box") && argc == 1) {
  20. printf("fases box.\n");
  21. printf("Usage: box command [args] ...\n");
  22. /* END */
  23. printf("¯\\_(ツ)_/¯ No commands found.");
  24. /* START */
  25. printf("\n");
  26. }
  27. else {
  28. printf("box: %s: Not found or not implemented.\n", argv[0]);
  29. }
  30. return 0;
  31. }
  32. /* END */
  33. /* Generated on Tue 21 Feb 20:06:57 CET 2023 */