Skip to content

Exit codes for errors would be nice. #20

@sicklittlemonkey

Description

@sicklittlemonkey

I notice that AddFile already returns a result code but it isn't returned by Main.

Some others such as Set/ClearFileHighBit also return one but they can be run on multiple files, so a decision must be made as to error behaviour. Presumably the current behaviour of ignoring errors and attempting to process all files is desirable - though it could be an option.

But which error to return? The simplest way forward is to process all files and return zero, or the first or last non-zero code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions