forked from ponylang/ponyc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
options: Handle command line option errors more gracefully
Stop printing the "BUG: unprocessed option id -2" message when user passes wrong arguments. Before this change: $ ./build/release/ponyc -V ./build/release/ponyc: '-V' option requires an argument! BUG: unprocessed option id -2 $ echo $? 255 After this change: $ ./build/release/ponyc -V ./build/release/ponyc: '-V' option requires an argument! $ echo $? 255
- Loading branch information
1 parent
5d5ae76
commit 764110c
Showing
4 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -247,5 +247,5 @@ int ponyint_opt_next(opt_state_t* s) | |
|
||
strip_accepted_opts(s); | ||
|
||
return m->id; | ||
return (int)m->id; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters