From 07e2a399d2e84896e3d1de83cdb31e7769c8b43c Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Fri, 8 Sep 2017 12:56:22 +0200 Subject: [PATCH] clean usage --- README.md | 19 ++++++++++--------- dotdrop/dotdrop.py | 20 +++++++++----------- 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 957c88b..b31d29b 100644 --- a/README.md +++ b/README.md @@ -146,20 +146,21 @@ $ ./dotdrop.sh --help |_| Usage: - dotdrop.py install [--profile=] [--cfg=] - [(-f | --force)] [--nodiff] [--dry] - dotdrop.py compare [--profile=] [--cfg=] - dotdrop.py list [--cfg=] - dotdrop.py import [--cfg=] [--profile=] [--dry] ... + dotdrop.py install [-fndc ] [--profile=] + dotdrop.py compare [-c ] [--profile=] [--files=] + dotdrop.py import [-ldc ] [--profile=] ... + dotdrop.py list [-c ] dotdrop.py (-h | --help) dotdrop.py (-v | --version) Options: - --profile= Specify the profile to use [default: hostname]. - --cfg= Path to the config [default: config.yaml]. - --dry Dry run. - --nodiff Do not diff when installing [default: False]. + --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]. + -d --dry Dry run. -v --version Show version. -h --help Show this screen. ``` diff --git a/dotdrop/dotdrop.py b/dotdrop/dotdrop.py index 5323976..68adb4a 100755 --- a/dotdrop/dotdrop.py +++ b/dotdrop/dotdrop.py @@ -30,23 +30,21 @@ USAGE = """ %s Usage: - dotdrop.py install [--profile=] [--cfg=] - [(-f | --force)] [--nodiff] [--dry] - dotdrop.py compare [--profile=] [--cfg=] [--files=] - dotdrop.py list [--cfg=] - dotdrop.py import [--profile=] [--cfg=] - [(-l | --link)] [--dry] ... + dotdrop.py install [-fndc ] [--profile=] + dotdrop.py compare [-c ] [--profile=] [--files=] + dotdrop.py import [-ldc ] [--profile=] ... + dotdrop.py list [-c ] dotdrop.py (-h | --help) dotdrop.py (-v | --version) Options: - --profile= Specify the profile to use [default: %s]. - --cfg= Path to the config [default: %s/config.yaml]. - --files= Comma separated list of file to compare. - --dry Dry run. - --nodiff Do not diff when installing [default: False]. + --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]. + -d --dry Dry run. -v --version Show version. -h --help Show this screen.