Changeset 558 in tailor for vcpx/tailor.py


Ignore:
Timestamp:
08/14/05 23:05:12 (8 years ago)
Author:
lele@…
Hash name:
20050814210512-97f81-13164efbee086aa1fd12b26ee29ad276b861dc4a
Message:

Gives better meanings to --verbose and --debug when no config is given
When the config file is not given either thru --configfile or as the
argument specified on the command line, with no --verbose and no
--debug tailor prints a message and exits, with --verbose prints a
potential config file more or less equivalent to the given options,
while with --debug it goes on and execute the process, mainly for
testing purposes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/tailor.py

    r557 r558  
    330330                config.write(sys.stdout) 
    331331 
    332             if not options.debug: 
     332            if options.debug: 
    333333                project = config['project'] 
    334334                tailorizer = Tailorizer(project) 
    335335                tailorizer(options) 
    336             else: 
    337                 sys.stderr.write("Operation not performed, given --debug\n") 
     336            elif not options.verbose: 
     337                sys.stderr.write("Operation not performed, try --verbose\n") 
Note: See TracChangeset for help on using the changeset viewer.