#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jul  4 22:12:23 2019

@author: M
"""
PW = {'mail': 'mail pw',
      'git': 'git pw',
      'phone': 'phone pw'}

import sys, pyperclip

if len(sys.argv) < 2:
    print('Usage: $python pw.py [account] - copy account password')
    sys.exit()
    
account = sys.argv[1]

if account in PW:
    pyperclip.copy(PW[account])
    print('Password for ' + account + 'copied to clipboard')
else:
    print('No account')
bf3c404fd09254e174f4f1f5dceeecb35ab95c48
<mask token>

<mask token>
if len(sys.argv) < 2:
    print('Usage: $python pw.py [account] - copy account password')
    sys.exit()
<mask token>
if account in PW:
    pyperclip.copy(PW[account])
    print('Password for ' + account + 'copied to clipboard')
else:
    print('No account')

<mask token>
PW = {'mail': 'mail pw', 'git': 'git pw', 'phone': 'phone pw'}
<mask token>
if len(sys.argv) < 2:
    print('Usage: $python pw.py [account] - copy account password')
    sys.exit()
account = sys.argv[1]
if account in PW:
    pyperclip.copy(PW[account])
    print('Password for ' + account + 'copied to clipboard')
else:
    print('No account')

<mask token>
PW = {'mail': 'mail pw', 'git': 'git pw', 'phone': 'phone pw'}
import sys, pyperclip
if len(sys.argv) < 2:
    print('Usage: $python pw.py [account] - copy account password')
    sys.exit()
account = sys.argv[1]
if account in PW:
    pyperclip.copy(PW[account])
    print('Password for ' + account + 'copied to clipboard')
else:
    print('No account')

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jul  4 22:12:23 2019

@author: M
"""
PW = {'mail': 'mail pw',
      'git': 'git pw',
      'phone': 'phone pw'}

import sys, pyperclip

if len(sys.argv) < 2:
    print('Usage: $python pw.py [account] - copy account password')
    sys.exit()
    
account = sys.argv[1]

if account in PW:
    pyperclip.copy(PW[account])
    print('Password for ' + account + 'copied to clipboard')
else:
    print('No account')