Lines Matching refs:flagfile
123 --flagfile=foo read flags from file foo.
172 NOTE ON --flagfile:
181 You then specify your file with the special flag '--flagfile=somefile'.
182 You CAN recursively nest flagfile= tokens OR use multiple files on the
184 '//' are comments in your flagfile.
186 Any flagfile=<file> will be interpreted as having a relative path from
189 myPythonScript.py --flagfile=config/somefile.cfg
191 If somefile.cfg includes further --flagfile= directives, these will be
193 including flagfile was found in!
198 flagfile. We do now support '~' expanded directory names.
453 """Raised if flagfile fails to open: doesn't exist, wrong permissions, etc."""
1214 # This pre parses the argv list for --flagfile=<> options.
1524 """Checks whether flag_string contain a --flagfile=<foo> directive."""
1526 if flag_string.startswith('--flagfile='):
1528 elif flag_string == '--flagfile':
1530 elif flag_string.startswith('-flagfile='):
1532 elif flag_string == '-flagfile':
1539 """Returns filename from a flagfile_str of form -[-]flagfile=filename.
1541 The cases of --flagfile foo and -flagfile foo shouldn't be hitting
1545 if flagfile_str.startswith('--flagfile='):
1546 return os.path.expanduser((flagfile_str[(len('--flagfile=')):]).strip())
1547 elif flagfile_str.startswith('-flagfile='):
1548 return os.path.expanduser((flagfile_str[(len('-flagfile=')):]).strip())
1550 raise FlagsError('Hit illegal --flagfile type: %s' % flagfile_str)
1563 NOTE(springer): This function checks for a nested --flagfile=<foo>
1569 line_list = [] # All line from flagfile.
1570 flag_line_list = [] # Subset of lines w/o comments, blanks, flagfile= tags.
1574 raise CantOpenFlagFileError('ERROR:: Unable to open flagfile: %s' % e_msg)
1587 # Checks for a nested "--flagfile=<bar>" flag in the current file.
1597 sys.stderr.write('Warning: Hit circular flagfile dependency: %s\n' %
1600 # Any line that's not a comment or a nested flagfile should get
1611 more flagfile directives of the form --flagfile="./filename".
1613 force_gnu: If False, --flagfile parsing obeys normal flag semantics.
1614 If True, --flagfile parsing instead follows gnu_getopt semantics.
1620 from any flagfile(s).
1626 --flagfile=<somefile>. Then it opens <somefile>, reads all valid key
1635 --> A further "--flagfile=<otherfile.cfg>" CAN be nested in a flagfile.
1638 --> In a flagfile, a line beginning with # or // is a comment.
1648 # This handles the case of -(-)flagfile foo. In this case the
1650 if current_arg == '--flagfile' or current_arg == '-flagfile':
1652 raise IllegalFlagValue('--flagfile with no argument')
1656 # This handles the case of (-)-flagfile=foo.
1693 Output will be in the format of a flagfile.
2259 # Take care of the special flags, e.g., --flagfile, --undefok.
2853 'flagfile', "",