urfave / cli

A simple, fast, and fun package for building command line apps in Go
https://cli.urfave.org
MIT License
21.9k stars 1.69k forks source link

how to distinguish a flag between manually set or default settings ? #1871

Closed ningmingxiao closed 4 months ago

ningmingxiao commented 4 months ago

how to distinguish a flag between manually set or default settings ?

ningmingxiao commented 4 months ago

use context.IsSet(flagName)