Added additional params and added usage

This commit is contained in:
Alejandro Angulo 2022-12-20 09:40:52 -08:00
parent 0aed99b97e
commit e3bd8f932d
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
4 changed files with 40 additions and 5 deletions

View file

@ -10,9 +10,23 @@ flake to build a resume generator command.
Use the flake!
```bash
env EMAIL='foo@bar.com' PHONENUMBER='(555) 555-5555' nix run github:alejandro-angulo/resume
nix run github:alejandro-angulo/resume -- -h
Usage: alejandro-resume [-h] [-d] [-e EMAIL] [-p PHONENUMBER]
-h Prints this usage message.
-d Saves latexmk log file (will be named alejandro_resume.log)
-e EMAIL Sets email address used when building document.
Can also be set with EMAIL environment variable.
-p PHONENUMBER Sets phone number used when building the document.
Can also be set with PHONENUMBER environment variable.
nix run github:alejandro-angulo/resume -- -e 'foo@bar.com' -p '(555) 555-5555'
```
The `EMAIL` and `PHONENUMBER` variables are required because I didn't want to
The email and phone number parameters are required because I didn't want to
hardcode those in my tex file. Hopefully this helps prevent spammers from
finding my personal contact information.