X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=sfa%2Fclient%2Fsfi_commands.py;h=80897cd235067e9803e8dad1e3f3d16e5a2686c9;hb=c2d7f6e7f1df60c9759301d3770da5d443c2b7f4;hp=bdcc16d496526c74c0ae22ef82eb1921404a44e7;hpb=ccd6b8232b5cf18d28e3a7e3a87b87d7aaa9970b;p=sfa.git diff --git a/sfa/client/sfi_commands.py b/sfa/client/sfi_commands.py index bdcc16d4..80897cd2 100755 --- a/sfa/client/sfi_commands.py +++ b/sfa/client/sfi_commands.py @@ -12,6 +12,7 @@ class Commands: self.parser.add_option("-o", "", dest="outfile", metavar="FILE", help="write output to FILE (default is stdout)") self.nodefile = False + self.linkfile = False self.attributes = {} def add_nodefile_option(self): @@ -20,6 +21,12 @@ class Commands: metavar="FILE", help="read node list from FILE"), + def add_linkfile_option(self): + self.linkfile = True + self.parser.add_option("-l", "", dest="linkfile", + metavar="FILE", + help="read link list from FILE") + def add_show_attributes_option(self): self.parser.add_option("-s", "--show-attributes", action="store_true", dest="showatt", default=False,