Skip to content

Commit

Permalink
Silly mistake 馃檮
Browse files Browse the repository at this point in the history
  • Loading branch information
frawau committed Jan 7, 2023
1 parent 4097c06 commit 233a402
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion aioblescan/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ async def amain(args=None):
conn.close()


if __name__ == "__main__":
def main():
global opts

parser = argparse.ArgumentParser(description="Track BLE advertised packets")
parser.add_argument(
"-e",
Expand Down Expand Up @@ -158,6 +160,7 @@ async def amain(args=None):
)
parser.add_argument(
"-T",

"--thermobeacon",
action="store_true",
default=False,
Expand All @@ -170,6 +173,7 @@ async def amain(args=None):
default=False,
help="Also show the raw data.",
)

parser.add_argument(
"-a",
"--advertise",
Expand Down Expand Up @@ -229,3 +233,6 @@ async def amain(args=None):
asyncio.run(amain())
except:
pass

if __name__ == "__main__":
main()

0 comments on commit 233a402

Please sign in to comment.