We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import argparse if __name__ == '__main__': parser = argparse.ArgumentParser(description='Test Cli') parser.add_argument('--file', '-f', dest='files', nargs='+', type=str, required=False) args = parser.parse_args() print(args)
In python, nagrs is convenient for dealing with array types, but with pflag we need to define flag repeatedly
➜ python git:(master) ✗ python main.py -f main.py init.py Namespace(files=['main.py', 'init.py'])
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In python, nagrs is convenient for dealing with array types, but with pflag we need to define flag repeatedly
The text was updated successfully, but these errors were encountered: