code: def format_vars(args):
      
      variables = []
      for key, value in args.items():
          if value:
              variables += ['{0}={1}'.format(key, value)]
      return variables
docs: Format the given vars in the form: 'flag=value