Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Add support of short and full Argument parser arguments #14

Open
difince opened this issue Dec 15, 2021 · 0 comments
Open

Add support of short and full Argument parser arguments #14

difince opened this issue Dec 15, 2021 · 0 comments
Assignees

Comments

@difince
Copy link
Contributor

difince commented Dec 15, 2021

Description

Some of the commands do not support short and long versions of the command's arguments.
https://github.com/vmware-labs/ml-conversational-analytic-tool/blob/cc3762d59289668e4d8420bb36fcd7fb8bbd18e3/ml-conversational-analytic-tool/run.py#L49-L51

Allow the Users to select their preferred way to provide commands arguments
For example, the user should be able to provide -p or --pad

Solution
Make all ArgumentParser's arguments support full and short versions (wherever possible):
Example:

parser = argparse.ArgumentParser()
parser.add_argument('-n', '--name', help="help msg")
@difince difince changed the title Add support of short and full command params versions Add support of short and full Argument parser parameters Dec 16, 2021
@difince difince self-assigned this Dec 16, 2021
@difince difince changed the title Add support of short and full Argument parser parameters Add support of short and full Argument parser arguments Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant