parameters: (self, rule)
return_statement: return MsvsSettings.RuleShellFlags(cygwin, quote_cmd)
docstring: Return RuleShellFlags about how the given rule should be run. This
          includes whether it should run under cygwin (msvs_cygwin_shell), and
          whether the commands should be quoted (msvs_quote_cmd).
docstring_summary: Return RuleShellFlags about how the given rule should be run. This
          includes whether it should run under cygwin (msvs_cygwin_shell), and
          whether the commands should be quoted (msvs_quote_cmd).
docstring_tokens: Return RuleShellFlags about how the given rule should be run . This includes whether it should run under cygwin ( msvs_cygwin_shell ) and whether the commands should be quoted ( msvs_quote_cmd ) .
function: def GetRuleShellFlags(self, rule):
          """Return RuleShellFlags about how the given rule should be run. This
          includes whether it should run under cygwin (msvs_cygwin_shell), and
          whether the commands should be quoted (msvs_quote_cmd)."""
          # If the variable is unset, or set to 1 we use cygwin
          cygwin = int(rule.get("msvs_cygwin_shell",
                                self.spec.get("msvs_cygwin_shell", 1))) != 0
          # Default to quoting. There's only a few special instances where the
          # target command uses non-standard command line parsing and handle quotes
          # and quote escaping differently.
          quote_cmd = int(rule.get("msvs_quote_cmd", 1))
          assert quote_cmd != 0 or cygwin != 1, \
                 "msvs_quote_cmd=0 only applicable for msvs_cygwin_shell=0"
          return MsvsSettings.RuleShellFlags(cygwin, quote_cmd)
function_tokens: def GetRuleShellFlags ( self , rule ) : # If the variable is unset, or set to 1 we use cygwin cygwin = int ( rule . get ( "msvs_cygwin_shell" , self . spec . get ( "msvs_cygwin_shell" , 1 ) ) ) != 0 # Default to quoting. There's only a few special instances where the # target command uses non-standard command line parsing and handle quotes # and quote escaping differently. quote_cmd = int ( rule . get ( "msvs_quote_cmd" , 1 ) ) assert quote_cmd != 0 or cygwin != 1 , "msvs_quote_cmd=0 only applicable for msvs_cygwin_shell=0" return MsvsSettings . RuleShellFlags ( cygwin , quote_cmd )