Subversion Repositories SmartDukaan

Rev

Rev 5440 | Rev 5971 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5440 Rev 5620
Line 309... Line 309...
309
                      action="store_true",
309
                      action="store_true",
310
                      help="In a full update, all older items are marked as PHASED_OUT. Also see -pm.")
310
                      help="In a full update, all older items are marked as PHASED_OUT. Also see -pm.")
311
    parser.add_option("-p", "--partial", dest="full_update",
311
    parser.add_option("-p", "--partial", dest="full_update",
312
                      action="store_false",
312
                      action="store_false",
313
                      help="In a partial update, older items are left as is. Also see -fm.")
313
                      help="In a partial update, older items are left as is. Also see -fm.")
314
    parser.set_defaults(full_update=True, dry_run=False, vendor=1)
314
    parser.set_defaults(full_update=False, dry_run=False, vendor=1)
315
    (options, args) = parser.parse_args()
315
    (options, args) = parser.parse_args()
316
    if len(args) != 0:
316
    if len(args) != 0:
317
        parser.error("You've supplied extra arguments. Are you sure you want to run this program?")
317
        parser.error("You've supplied extra arguments. Are you sure you want to run this program?")
318
    filename = options.filename
318
    filename = options.filename
319
    load_item_data(filename, options.vendor, options.full_update, options.dry_run)
319
    load_item_data(filename, options.vendor, options.full_update, options.dry_run)