diff options
Diffstat (limited to 'src/main.nim')
-rw-r--r-- | src/main.nim | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/main.nim b/src/main.nim index 458ba72..d8ad5a5 100644 --- a/src/main.nim +++ b/src/main.nim @@ -11,16 +11,11 @@ import "feature/syncsource" proc execSudo*(args: seq[Argument]): int = - when NimVersion >= "1.2": - execResult(sudoPrefix & getAppFilename() & (block:collect(newSeq): - for y in args: - for x in y.collectArg: - x - )) - else: - execResult(sudoPrefix & getAppFilename() & - lc[x | (y <- args, x <- y.collectArg), string]) - + execResult(sudoPrefix & getAppFilename() & (block:collect(newSeq): + for y in args: + for x in y.collectArg: + x + )) proc passValidation(args: seq[Argument], config: Config, nonRootArgs: openArray[OptionPair], rootArgs: openArray[OptionPair], opts: varargs[seq[CommandOption]]): int = |