Count returns the number of supplied attachment values before validation. Absent flags count as zero; empty paths and values over the limit still count.
()
| 42 | // Count returns the number of supplied attachment values before validation. |
| 43 | // Absent flags count as zero; empty paths and values over the limit still count. |
| 44 | func (f *Flag) Count() int { |
| 45 | return len(f.values) |
| 46 | } |
| 47 | |
| 48 | // UserAssets validates the files named by the attachment flag, keeping them in |
| 49 | // the order they were written. It returns nothing when the flag was not passed. |
no outgoing calls