Skip to content

Commit

Permalink
Example circle: require exactly one argument
Browse files Browse the repository at this point in the history
  • Loading branch information
cburstedde committed Aug 10, 2023
1 parent c9930d9 commit 9cc257f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/circle/circle.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ main (int argc, char **argv)
/* process command line arguments */
usage = "Arguments: <level>\n";
wrongusage = 0;
if (!wrongusage && argc < 3) {
if (!wrongusage && argc != 2) {
wrongusage = 1;
}
config = P4EST_CONFIG_CIRCLE;
Expand Down

0 comments on commit 9cc257f

Please sign in to comment.