Skip to content

Commit

Permalink
Make help print the right script name.
Browse files Browse the repository at this point in the history
  • Loading branch information
set-soft committed Jul 16, 2020
1 parent 3d19565 commit 1ea8645
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kibom/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ def writeVariant(input_file, output_dir, output_file, variant, preferences):

def main():

parser = argparse.ArgumentParser(prog="python -m kibom", description="KiBOM Bill of Materials generator script")
prog = 'KiBOM_CLI.py'
if __name__ == '__main__':
prog = "python -m kibom"
parser = argparse.ArgumentParser(prog=prog, description="KiBOM Bill of Materials generator script")

parser.add_argument("netlist", help='xml netlist file. Use "%%I" when running from within KiCad')
parser.add_argument("output", default="", help='BoM output file name.\nUse "%%O" when running from within KiCad to use the default output name (csv file).\nFor e.g. HTML output, use "%%O.html"')
Expand Down

0 comments on commit 1ea8645

Please sign in to comment.