~maddevelopers/mg5amcnlo/2.7.1.3

« back to all changes in this revision

Viewing changes to madgraph/interface/extended_cmd.py

  • Committer: olivier-mattelaer
  • Date: 2020-01-20 14:53:46 UTC
  • mfrom: (283.1.26 2.7.0)
  • Revision ID: olivier-mattelaer-20200120145346-uosfwy1zhg4ikp1x
pass to 2.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
645
645
    def split_arg(line):
646
646
        """Split a line of arguments"""
647
647
        
648
 
        split = line.split()
 
648
        split = re.findall(r"(?:[^\s'\"]|(?:'|\")(?:\\.|[^\"'])*(?:\"|'))+",line)
 
649
        
649
650
        out=[]
650
651
        tmp=''
651
652
        for data in split:
2648
2649
            line= [l for l in line.split(';') if l][-1] 
2649
2650
        if line in self.quit_on:
2650
2651
            return True
2651
 
        self.create_question()
2652
 
        return self.reask(True)
2653
 
        
 
2652
        if self.value != 'reask':
 
2653
            self.create_question()
 
2654
            return self.reask(True)
 
2655
        return
2654
2656
 
2655
2657
    def set_switch(self, key, value, user=True):
2656
2658
        """change a switch to a given value"""