Fixed dispense give erroring on 3 arguments (and succeeding on 2)
[tpg/opendispense2.git] / src / client / main.c
index 4d33de1..88e82a8 100644 (file)
@@ -262,7 +262,7 @@ int main(int argc, char *argv[])
        // - "Here, have some money."
        if( strcmp(text_args[0], "give") == 0 )
        {
-               if( text_argc != 3 ) {
+               if( text_argc != 4 ) {
                        fprintf(stderr, "`dispense give` takes three arguments\n");
                        ShowUsage();
                        return -1;

UCC git Repository :: git.ucc.asn.au