Skip to content

Commit

Permalink
fix: Panic with no args. Fixes #34 (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmammino committed Nov 7, 2023
1 parent c17a7de commit 9a5b624
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ fn main() -> io::Result<()> {
.help("Pretty prints the JWT header or body"),
Arg::new("token")
.index(1)
.allow_hyphen_values(true)
.required(true)
.help("the JWT as a string (use \"-\" to read from stdin)"),
])
.get_matches();
Expand Down

0 comments on commit 9a5b624

Please sign in to comment.