diff options
| author | Teddy Wing | 2016-04-23 02:18:14 -0400 |
|---|---|---|
| committer | Teddy Wing | 2016-04-23 02:18:14 -0400 |
| commit | 0b12b2bae1130746ed49cc3c7a2daa819ede1b58 (patch) | |
| tree | 56418880921075e914e295739b77287a8c9f9263 /Makefile | |
| parent | 0d3e1073e4a3f683b746a5248227c57004ba8cec (diff) | |
| download | mutt-alias-auto-add-0b12b2bae1130746ed49cc3c7a2daa819ede1b58.tar.bz2 | |
Specify alias file as a command line argument
* Add a dependency on 'getopts'
* Remove the hard-coded "testaliases" file used previously.
* write_alias: Update to include a `file` attribute that can reference
an arbitrary file
* find_alias_in_file: Change the `file` parameter to be a Path reference
instead of a string so that it can be called correctly from
`write_alias`. Also because it matches the File module's signature.
Originally I planned to make the file argument available under a `-f`
command-line option. Later I decided instead to make it a required
argument, so it made more sense not to prefix it with an option flag.
Since I no longer need command line options—just the first argument—I
realised that I could get rid of the `getopts` dependency and use
`std::env::args`. Will do this in a later commit.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions
