git ssb

8+

cel / sbotc



Commit 6ec60a4d4a0671ffdfb34da0ee4c51d93b705f9c

Handle unknown options

%eZDamLh9XzfWLYlzhmOgMLREL5CPXGLN6F2xp1pMLZE=.sha256
%wCPUw0EpbIQecIxaFSvVZeKhu5qg6WN1o1qk4SayPmk=.sha256
cel committed on 6/5/2017, 8:44:36 PM
Parent: 0462f4b3f82ed090ef34f5f0270a4feef2c15a6f

Files changed

sbotc.cchanged
sbotc.cView
@@ -779,9 +779,9 @@
779779 } else if (len < 0 && errno != ENOENT) {
780780 err(1, "failed to read config");
781781 }
782782
783- for (i = 1; (i + 1 < argc) && (argv[i][0] == '-'); i++) {
783 + for (i = 1; i < argc && (argv[i][0] == '-'); i++) {
784784 switch (argv[i][1]) {
785785 case 's': host = argv[++i]; break;
786786 case 'k': key = argv[++i]; break;
787787 case 'p': port = argv[++i]; break;

Built with git-ssb-web