Add short args to shell_path

This commit is contained in:
Ivan Malison 2016-08-02 19:47:37 -07:00
parent 8dacac359f
commit 435a11bd6e
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -64,12 +64,12 @@ if __name__ == '__main__':
help='paths to add', help='paths to add',
) )
parser.add_argument( parser.add_argument(
'--path-var', '--path-var', '-v',
help='the path var to add to.', help='the path var to add to.',
default='PATH', default='PATH',
) )
parser.add_argument( parser.add_argument(
'--separator', '--separator', '-s',
help='the separator of the path variable', help='the separator of the path variable',
default=':', default=':',
) )
@ -79,35 +79,35 @@ if __name__ == '__main__':
default=None, default=None,
) )
parser.add_argument( parser.add_argument(
'--after', '--after', '-a',
help=('whether to do the action after the target (if target is specified)' help=('whether to do the action after the target (if target is specified)'
'or the entire path variable'), 'or the entire path variable'),
action='store_true', action='store_true',
default=True, default=True,
) )
parser.add_argument( parser.add_argument(
'--before', '--before', '-b',
help='inverse of after', help='inverse of after',
dest='after', dest='after',
action='store_false', action='store_false',
) )
parser.add_argument( parser.add_argument(
'--target', '--target', '-t',
help='the target path', help='the target path',
default=None default=None
) )
parser.add_argument( parser.add_argument(
'--include-assignment', '--include-assignment', '-x',
action='store_true', action='store_true',
help='include the assignment command in output', help='include the assignment command in output',
) )
parser.add_argument( parser.add_argument(
'--print-separator', '--print-separator', '-p',
help='separator to use for output', help='separator to use for output',
default=None, default=None,
) )
parser.add_argument( parser.add_argument(
'--path-lines', '--path-lines', '-l',
help='use newlines to separate path output', help='use newlines to separate path output',
action='store_true', action='store_true',
default=False, default=False,