Skip to content

Commit 301b6a2

Browse files
committed
Show help text when no arguments provided
Previously sweepga would show an error message when run without arguments. Now it displays the help text, which is more user-friendly.
1 parent 3e28fe1 commit 301b6a2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,6 +1365,12 @@ fn create_fastga_integration(
13651365

13661366
fn main() -> Result<()> {
13671367
let args = Args::parse();
1368+
1369+
// Show help if no arguments provided
1370+
if args.files.is_empty() {
1371+
Args::parse_from(&["sweepga", "--help"]);
1372+
}
1373+
13681374
let timing = TimingContext::new();
13691375

13701376
// Print startup banner

0 commit comments

Comments
 (0)