diff options
| author | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2021-11-26 19:34:23 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2021-11-26 19:34:23 +0100 |
| commit | 2b48814d3b685d1527e1d17ab939be71ff6b8c55 (patch) | |
| tree | bae0ba4d6f8a393b31b688190c332846af17b5da /src/commands.c | |
| parent | 679fac1f8be87ccb431d1ce981e98bdbfbd61dd8 (diff) | |
| download | nissy-2b48814d3b685d1527e1d17ab939be71ff6b8c55.tar.gz nissy-2b48814d3b685d1527e1d17ab939be71ff6b8c55.zip | |
Fixing the fix (the previous commit introduced a bug when the step was not specified) + minor fixes in shell
Diffstat (limited to '')
| -rw-r--r-- | src/commands.c | 4 |
1 files changed, 2 insertions, 2 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; |
