mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 11:18:03 +00:00
lfcli_base.py: allows abbreviations for script options
This commit is contained in:
@@ -217,6 +217,7 @@ class LFCliBase:
|
|||||||
if (prog is not None) or (formatter_class is not None) or (epilog is not None) or (description is not None):
|
if (prog is not None) or (formatter_class is not None) or (epilog is not None) or (description is not None):
|
||||||
parser = argparse.ArgumentParser(prog=prog,
|
parser = argparse.ArgumentParser(prog=prog,
|
||||||
formatter_class=formatter_class,
|
formatter_class=formatter_class,
|
||||||
|
allow_abbrev=True,
|
||||||
epilog=epilog,
|
epilog=epilog,
|
||||||
description=description)
|
description=description)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user