diff options
| author | Paul C. Buetow <paul@buetow.org> | 2014-04-16 08:10:56 +0200 |
|---|---|---|
| committer | Paul C. Buetow <paul@buetow.org> | 2014-04-16 08:10:56 +0200 |
| commit | e4279c5fbadeacbbd12975f33db3fafca680cd5c (patch) | |
| tree | 38dc5baa452c7df736f03adb8c041798fd94251f | |
| parent | 50bf405eda62839b1d28dd7c6421be35abd7ee87 (diff) | |
fix
| -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', |
