Skip to content

Commit

Permalink
script: add example commands to the script
Browse files Browse the repository at this point in the history
Signed-off-by: Muminul Islam <muislam@microsoft.com>
  • Loading branch information
russell-islam authored and Jinank Jain committed Aug 29, 2024
1 parent 24b35f0 commit 03fc170
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/generate_binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,12 @@ def main(args):

if __name__ == "__main__":
parser = argparse.ArgumentParser(
description="Generate Rust bindings from Hyper-V headers from Linux kernel"
description="Generate Rust bindings from Hyper-V headers from Linux kernel",
epilog="example:\n"
"./generate_binding.py -k /opt/linux-dom0\n"
"./generate_binding.py -k /opt/linux-dom0 --arch x86\n"
"./generate_binding.py --bindgen=\"--with-derive-eq --with-derive-partialeq --with-derive-ord\" -k /opt/linux-dom0",
formatter_class=argparse.RawTextHelpFormatter
)

parser.add_argument(
Expand Down

0 comments on commit 03fc170

Please sign in to comment.