mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-17 16:38:54 +00:00
parent
761b46219c
commit
718ec1685a
14 changed files with 14 additions and 0 deletions
|
|
@ -56,6 +56,7 @@ func transformerAltkvParseCLI(
|
|||
return nil, cli.ErrHelpRequested
|
||||
}
|
||||
transformerAltkvUsage(os.Stderr)
|
||||
//lint:ignore SA4004 loop is intentionally structured this way
|
||||
return nil, fmt.Errorf("%s %s: option \"%s\" not recognized", "mlr", verbNameAltkv, opt)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ func transformerCheckParseCLI(
|
|||
return nil, cli.ErrHelpRequested
|
||||
|
||||
} else {
|
||||
//lint:ignore SA4004 loop is intentionally structured this way
|
||||
return nil, cli.VerbErrorf(verbNameCheck, "option \"%s\" not recognized", opt)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@ func transformerGroupByParseCLI(
|
|||
return nil, cli.ErrHelpRequested
|
||||
|
||||
} else {
|
||||
//lint:ignore SA4004 loop is intentionally structured this way
|
||||
return nil, cli.VerbErrorf(verbNameGroupBy, "option \"%s\" not recognized", opt)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@ func transformerGroupLikeParseCLI(
|
|||
return nil, cli.ErrHelpRequested
|
||||
|
||||
} else {
|
||||
//lint:ignore SA4004 loop is intentionally structured this way
|
||||
return nil, cli.VerbErrorf(verbNameGroupLike, "option \"%s\" not recognized", opt)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ func transformerLabelParseCLI(
|
|||
return nil, cli.ErrHelpRequested
|
||||
|
||||
} else {
|
||||
//lint:ignore SA4004 loop is intentionally structured this way
|
||||
return nil, cli.VerbErrorf(verbNameLabel, "option \"%s\" not recognized", opt)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ func transformerLatin1ToUTF8ParseCLI(
|
|||
return nil, cli.ErrHelpRequested
|
||||
|
||||
} else {
|
||||
//lint:ignore SA4004 loop is intentionally structured this way
|
||||
return nil, cli.VerbErrorf(verbNameLatin1ToUTF8, "option \"%s\" not recognized", opt)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@ func transformerNothingParseCLI(
|
|||
return nil, cli.ErrHelpRequested
|
||||
} else {
|
||||
transformerNothingUsage(os.Stderr)
|
||||
//lint:ignore SA4004 loop is intentionally structured this way
|
||||
return nil, fmt.Errorf("%s %s: option \"%s\" not recognized", "mlr", verbNameNothing, opt)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ func transformerRegularizeParseCLI(
|
|||
return nil, cli.ErrHelpRequested
|
||||
|
||||
} else {
|
||||
//lint:ignore SA4004 loop is intentionally structured this way
|
||||
return nil, cli.VerbErrorf(verbNameRegularize, "option \"%s\" not recognized", opt)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@ func transformerRemoveEmptyColumnsParseCLI(
|
|||
return nil, cli.ErrHelpRequested
|
||||
|
||||
} else {
|
||||
//lint:ignore SA4004 loop is intentionally structured this way
|
||||
return nil, cli.VerbErrorf(verbNameRemoveEmptyColumns, "option \"%s\" not recognized", opt)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ func transformerSec2GMTDateParseCLI(
|
|||
return nil, cli.ErrHelpRequested
|
||||
|
||||
} else {
|
||||
//lint:ignore SA4004 loop is intentionally structured this way
|
||||
return nil, cli.VerbErrorf(verbNameSec2GMTDate, "option \"%s\" not recognized", opt)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ func transformerShuffleParseCLI(
|
|||
return nil, cli.ErrHelpRequested
|
||||
|
||||
} else {
|
||||
//lint:ignore SA4004 loop is intentionally structured this way
|
||||
return nil, cli.VerbErrorf(verbNameShuffle, "option \"%s\" not recognized", opt)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@ func transformerSkipTrivialRecordsParseCLI(
|
|||
return nil, cli.ErrHelpRequested
|
||||
|
||||
} else {
|
||||
//lint:ignore SA4004 loop is intentionally structured this way
|
||||
return nil, cli.VerbErrorf(verbNameSkipTrivialRecords, "option \"%s\" not recognized", opt)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ func transformerTacParseCLI(
|
|||
return nil, cli.ErrHelpRequested
|
||||
|
||||
} else {
|
||||
//lint:ignore SA4004 loop is intentionally structured this way
|
||||
return nil, cli.VerbErrorf(verbNameTac, "option \"%s\" not recognized", opt)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ func transformerUTF8ToLatin1ParseCLI(
|
|||
return nil, cli.ErrHelpRequested
|
||||
|
||||
} else {
|
||||
//lint:ignore SA4004 loop is intentionally structured this way
|
||||
return nil, cli.VerbErrorf(verbNameUTF8ToLatin1, "option \"%s\" not recognized", opt)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue