Skip to content

Commit

Permalink
always write the network field if no field in input.
Browse files Browse the repository at this point in the history
UmanShahzad committed Mar 14, 2022
1 parent 6d65f55 commit 7404b18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd_import.go
Original file line number Diff line number Diff line change
@@ -110,6 +110,7 @@ Options:
default: false.
--no-fields
specify that no fields exist except the implicit network field.
when enabled, --no-network has no effect; the network field is written.
default: false.
--no-network
if --fields-from-header is set, then don't write the network field, which
@@ -257,6 +258,7 @@ func cmdImport() error {
}
if fNoFields {
fFields = []string{}
fNoNetwork = false
} else if !fFieldsFromHdr && (fFields == nil || len(fFields) == 0) {
fFieldsFromHdr = true
}

0 comments on commit 7404b18

Please sign in to comment.