Do not always overwrite --guess-summary and --guess-description with -g

Review Request #8610 — Created Jan. 11, 2017 and submitted

Information

RBTools
release-0.7.x

Reviewers

rbt post would always overwrite the value of --guess-summary and
--guess-description with the value of --guess-fields, whether or
not it was actually provided; when -g is not provided, all three
flags will default to auto.

Now we check for the presence of these fields and only overwrite
--guess-summary and --guess-description when they are not provided
and --guess-fields is. Otherwise, when one of --guess-summary or
--guess-description is not provided, it will be set to the value of
--guess-fields.

Ran rbt post with different values of --guess-fields,
--guess-summary, and --guess-description and saw the expected
behaviour.

reviewbot
  1. Tool: Pyflakes
    Processed Files:
        rbtools/commands/post.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        rbtools/commands/post.py
    
    
  2. 
      
brennie
chipx86
  1. Ship It!
  2. 
      
AL
  1. Ship It!
  2. 
      
brennie
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-0.7.x (2f7b2d4)
Loading...