Skip to content
New issue

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

Use argparse in searpc-codegen for basic --help #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

moschlar
Copy link
Contributor

@moschlar moschlar commented May 24, 2018

Add an argparse block to searpc-codegen for basic --help output

@moschlar
Copy link
Contributor Author

moschlar commented Apr 25, 2024

Ping @feiniks !?

@@ -176,11 +176,16 @@ def gen_signature_list():
write_file(f, generate_signature(item[0], item[1]))

if __name__ == "__main__":
import argparse
parser = argparse.ArgumentParser(description='Generate function signatures and marshals for using Searpc')
parser.add_argument('rpc_mod_file', nargs='?', help='the RPC module file name (default: rpc_table)')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think nargs is not necessary since this is a positional argument, not a flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants