IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 26, 2007, 1:40:50 PM (19 years ago)
Author:
eugene
Message:

fixed task npending

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/book_commands.c

    r11081 r11324  
    363363  }
    364364
     365  Optional = FALSE;
     366  if ((N = get_argument (argc, argv, "-optional"))) {
     367    remove_argument (N, &argc, argv);
     368    Optional = TRUE;
     369  }
     370
    365371  if (argc != 4) {
    366372    gprint (GP_ERR, "USAGE: book newword (book) (page) (word)\n");
     
    385391  value = BookGetWord (page, argv[3]);
    386392  if (value == NULL) {
     393    if (Optional) {
     394      FREE (varName);
     395      return TRUE;
     396    }
    387397    gprint (GP_ERR, "value %s on page %s in book %s not found\n", argv[3], argv[2], argv[1]);
    388398    FREE (varName);
Note: See TracChangeset for help on using the changeset viewer.