From b9e932c623ee58e44e3b5c7788bb73bc54dd3d49 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Fri, 8 Sep 2017 13:04:21 +0200 Subject: [PATCH] clean usage --- README.md | 15 +++++++-------- dotdrop/dotdrop.py | 12 ++++++------ 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index b31d29b..7059b95 100644 --- a/README.md +++ b/README.md @@ -139,10 +139,9 @@ For additional usage see the help: ``` $ ./dotdrop.sh --help - _ _ _ __| | ___ | |_ __| |_ __ ___ _ __ / _` |/ _ \| __/ _` | '__/ _ \| '_ | - \__,_|\___/ \__\__,_|_| \___/| .__/ + \__,_|\___/ \__\__,_|_| \___/| .__/ v0.2 |_| Usage: @@ -150,18 +149,18 @@ Usage: dotdrop.py compare [-c ] [--profile=] [--files=] dotdrop.py import [-ldc ] [--profile=] ... dotdrop.py list [-c ] - dotdrop.py (-h | --help) - dotdrop.py (-v | --version) + dotdrop.py --help + dotdrop.py --version Options: --profile= Specify the profile to use [default: thor]. -c --cfg= Path to the config [default: /home/drits/tools/dotdrop/config.yaml]. --files= Comma separated list of files to compare. - -n --nodiff Do not diff when installing [default: False]. - -l --link Import and link [default: False]. - -f --force Do not warn if exists [default: False]. + -n --nodiff Do not diff when installing. + -l --link Import and link. + -f --force Do not warn if exists. -d --dry Dry run. - -v --version Show version. + --version Show version. -h --help Show this screen. ``` diff --git a/dotdrop/dotdrop.py b/dotdrop/dotdrop.py index 68adb4a..b06d618 100755 --- a/dotdrop/dotdrop.py +++ b/dotdrop/dotdrop.py @@ -34,18 +34,18 @@ Usage: dotdrop.py compare [-c ] [--profile=] [--files=] dotdrop.py import [-ldc ] [--profile=] ... dotdrop.py list [-c ] - dotdrop.py (-h | --help) - dotdrop.py (-v | --version) + dotdrop.py --help + dotdrop.py --version Options: --profile= Specify the profile to use [default: %s]. -c --cfg= Path to the config [default: %s/config.yaml]. --files= Comma separated list of files to compare. - -n --nodiff Do not diff when installing [default: False]. - -l --link Import and link [default: False]. - -f --force Do not warn if exists [default: False]. + -n --nodiff Do not diff when installing. + -l --link Import and link. + -f --force Do not warn if exists. -d --dry Dry run. - -v --version Show version. + --version Show version. -h --help Show this screen. """ % (BANNER, HOSTNAME, CUR)