@@ -60,28 +60,29 @@ def _display_tokens(ctx: typer.Context, tokens: list[dict]):
6060
6161
6262@app .command ("trending" )
63- def trending (ctx : typer .Context , limit : int = typer .Option (20 , "--limit" , "-n" )):
63+ def trending (ctx : typer .Context , limit : int = typer .Option (20 , "--limit" , "-n" , min = 1 )):
6464 """Top runners + recommended tokens."""
6565 tokens = asyncio .run (get_trending_tokens (limit = limit ))
6666 _display_tokens (ctx , tokens )
6767
6868
6969@app .command ("new" )
70- def new (ctx : typer .Context , limit : int = typer .Option (20 , "--limit" , "-n" )):
70+ def new (ctx : typer .Context , limit : int = typer .Option (20 , "--limit" , "-n" , min = 1 )):
7171 """Recently launched tokens."""
7272 tokens = asyncio .run (get_new_tokens (limit = limit ))
7373 _display_tokens (ctx , tokens )
7474
7575
7676@app .command ("graduating" )
77- def graduating (ctx : typer .Context , limit : int = typer .Option (20 , "--limit" , "-n" )):
77+ def graduating (ctx : typer .Context , limit : int = typer .Option (20 , "--limit" , "-n" , min = 1 )):
7878 """Tokens near bonding curve completion."""
7979 tokens = asyncio .run (get_graduating_tokens (limit = limit ))
8080 _display_tokens (ctx , tokens )
8181
8282
8383@app .command ("recommended" )
84- def recommended (ctx : typer .Context , limit : int = typer .Option (20 , "--limit" , "-n" )):
84+ @app .command ("top" , hidden = True )
85+ def recommended (ctx : typer .Context , limit : int = typer .Option (20 , "--limit" , "-n" , min = 1 )):
8586 """Recommended tokens by pump.fun."""
8687 tokens = asyncio .run (get_recommended_tokens (limit = limit ))
8788 _display_tokens (ctx , tokens )
@@ -91,7 +92,7 @@ def recommended(ctx: typer.Context, limit: int = typer.Option(20, "--limit", "-n
9192def search (
9293 ctx : typer .Context ,
9394 query : str = typer .Argument (...),
94- limit : int = typer .Option (20 , "--limit" , "-n" ),
95+ limit : int = typer .Option (20 , "--limit" , "-n" , min = 1 ),
9596):
9697 """Search tokens by keyword."""
9798 tokens = asyncio .run (search_tokens (query , limit = limit ))
0 commit comments