diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/commands.c | 4 | ||||
| -rw-r--r-- | src/shell.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/commands.c b/src/commands.c index 2442d81..5e01e67 100644 --- a/src/commands.c +++ b/src/commands.c | |||
| @@ -268,7 +268,7 @@ help_exec(CommandArgs *args) | |||
| 268 | " system (such a Linux or MacOS) or in pdf and html" | 268 | " system (such a Linux or MacOS) or in pdf and html" |
| 269 | " format in the docs folder.\n" | 269 | " format in the docs folder.\n" |
| 270 | "Nissy is available for free at " | 270 | "Nissy is available for free at " |
| 271 | "https://github.com/sebastianotronto/nissy" | 271 | "https://github.com/sebastianotronto/nissy\n" |
| 272 | ); | 272 | ); |
| 273 | } else { | 273 | } else { |
| 274 | printf("Command %s: %s\nusage: %s\n", args->command->name, | 274 | printf("Command %s: %s\nusage: %s\n", args->command->name, |
| @@ -365,7 +365,7 @@ new_args() | |||
| 365 | args->opts = malloc(sizeof(SolveOptions)); | 365 | args->opts = malloc(sizeof(SolveOptions)); |
| 366 | 366 | ||
| 367 | /* step and command are static */ | 367 | /* step and command are static */ |
| 368 | args->step = NULL; | 368 | args->step = steps[0]; /* default: first step in list */ |
| 369 | args->command = NULL; | 369 | args->command = NULL; |
| 370 | 370 | ||
| 371 | return args; | 371 | return args; |
diff --git a/src/shell.c b/src/shell.c index a23ea06..8bc2e0b 100644 --- a/src/shell.c +++ b/src/shell.c | |||
| @@ -69,7 +69,7 @@ launch() | |||
| 69 | ); | 69 | ); |
| 70 | 70 | ||
| 71 | while (true) { | 71 | while (true) { |
| 72 | fprintf(stderr, "nissy-# "); | 72 | fprintf(stdout, "nissy-# "); |
| 73 | if (fgets(line, MAXLINELEN, stdin) == NULL) | 73 | if (fgets(line, MAXLINELEN, stdin) == NULL) |
| 74 | break; | 74 | break; |
| 75 | shell_argc = parseline(line, shell_argv); | 75 | shell_argc = parseline(line, shell_argv); |
