Skip to content

Commit

Permalink
Fix optional short source-map argument
Browse files Browse the repository at this point in the history
> Two colons mean an option takes an optional arg; if there
> is text in the current argv-element (i.e., in the same word
> as the option name itself, for example, "-oarg"), then it
> is returned in optarg, otherwise optarg is set to zero.
  • Loading branch information
mgreter authored and xzyfer committed Apr 24, 2018
1 parent 548744e commit 2c2d264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sassc.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ int main(int argc, char** argv) {
{ "help", no_argument, 0, 'h' },
{ NULL, 0, NULL, 0}
};
while ((c = getopt_long(argc, argv, "vhslm:Map:t:I:P:E:", long_options, &long_index)) != -1) {
while ((c = getopt_long(argc, argv, "vhslm::Map:t:I:P:E:", long_options, &long_index)) != -1) {
switch (c) {
case 's':
from_stdin = 1;
Expand Down

0 comments on commit 2c2d264

Please sign in to comment.