diff options
Diffstat (limited to 'src')
| -rwxr-xr-x | src/fapi | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -64,7 +64,11 @@ class Fapi(object): self._args = args self._config = ConfigParser.ConfigParser() self._config.read(args.C) - self._partition = self._config.get('fapi', 'partition') + + if args.p != None: + self._partition = args.p + else: + self._partition = self._config.get('fapi', 'partition') def __login(self): @@ -434,6 +438,7 @@ if __name__ == '__main__': parser = argparse.ArgumentParser(add_help=False) parser.add_argument('-h', action='store_true', help='Help') + parser.add_argument('-p', action='store', help='Overwrite partition from fapi.conf') parser.add_argument('-v', action='store_true', help='Verbose') parser.add_argument('-V', action='store_true', help='Print version') parser.add_argument('-C', action='store', help='Config file', |
