Changed default config dir
This commit is contained in:
parent
9d31102cf4
commit
3bb78fbf1e
@ -15,9 +15,9 @@ if __name__ == '__main__':
|
||||
config_template = {'python-tool': {}}
|
||||
|
||||
# Gather Argument options
|
||||
EXAMPLE_TEXT='Example:\n\tpython-tool '
|
||||
EXAMPLE_TEXT='Example:\n\tpython-tool -h'
|
||||
parser = argparse.ArgumentParser(epilog=EXAMPLE_TEXT,formatter_class=argparse.RawDescriptionHelpFormatter)
|
||||
parser.add_argument('-c', '--config', action='store', help='Specify a config file (./config.yml)',default='./config.yml')
|
||||
parser.add_argument('-c', '--config', action='store', help='Specify a config file (~/.config/python-tool.yml)',default='~/.config/python-tool.yml')
|
||||
parser.add_argument('-H', '--hosts', action='append', default=None, help='Collects arguments in an array.')
|
||||
parser.add_argument('-d', '--dry-run', action='store_true', help='Store the existence of a variable.')
|
||||
parser.add_argument('-l', '--log', action='store', help='Specify a file to log to.')
|
||||
|
Loading…
Reference in New Issue
Block a user