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

@caixiangyue caixiangyue force-pushed the master branch 4 times, most recently from fe1e1e5 to c5d031e Compare June 3, 2020 10:28
@moschlar
Copy link
Contributor Author

moschlar commented Apr 25, 2024

Ping @feiniks !?

@moschlar moschlar force-pushed the searpc-codegen-help branch from 26317fc to b113ca4 Compare October 28, 2024 09:07
@@ -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