diff options
author | 2020-11-07 23:23:40 +0100 | |
---|---|---|
committer | 2020-11-07 23:29:44 +0100 | |
commit | 06249969e69cdc390e4f3f161bf6086ba8a3ce95 (patch) | |
tree | 0895d375bee9758572babeb450c3b60442bf0cc0 | |
parent | edcdd89acf37f14e7ac97ef206ad9e37b98541c7 (diff) | |
download | fronde-06249969e69cdc390e4f3f161bf6086ba8a3ce95.tar.gz fronde-06249969e69cdc390e4f3f161bf6086ba8a3ce95.tar.xz fronde-06249969e69cdc390e4f3f161bf6086ba8a3ce95.zip |
fix: Remove useless argument from command line help
-rw-r--r-- | lib/fronde/utils.rb | 3 | ||||
-rw-r--r-- | locales/en.yml | 1 | ||||
-rw-r--r-- | locales/fr.yml | 1 | ||||
-rw-r--r-- | spec/fronde/utils_spec.rb | 1 |
4 files changed, 1 insertions, 5 deletions
diff --git a/lib/fronde/utils.rb b/lib/fronde/utils.rb index aa73ec2..f3235d0 100644 --- a/lib/fronde/utils.rb +++ b/lib/fronde/utils.rb @@ -29,7 +29,6 @@ module Fronde '-f' => { long: 'force', boolean: true }, '-h' => { long: 'help', boolean: true, meth: :on_tail }, '-l' => { long: 'lang', keyword: 'LOCALE' }, - '-p' => { long: 'path' }, '-t' => { long: 'title' }, '-v' => { long: 'verbose', boolean: true, meth: :on_tail }, '-V' => { long: 'version', boolean: true, meth: :on_tail } @@ -41,7 +40,7 @@ module Fronde 'init' => { opts: ['-a', '-h', '-l', '-t', '-v'] }, 'config' => { alias: 'init' }, 'preview' => { opts: ['-h'] }, - 'open' => { opts: ['-a', '-h', '-l', '-p', '-t', '-v'] }, + 'open' => { opts: ['-a', '-h', '-l', '-t', '-v'] }, 'edit' => { alias: 'open' }, 'build' => { opts: ['-f', '-h'] }, 'publish' => { opts: ['-h'] }, diff --git a/locales/en.yml b/locales/en.yml index 599b570..4437ec1 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -13,7 +13,6 @@ fronde: help: Alias for the -h switch. options: cmd_title: Options - path: Path to the new file. directory: Wrap the new org file in this named folder. help: Display help for a command and exit. version: Display Fronde version and exit. diff --git a/locales/fr.yml b/locales/fr.yml index f0b4810..993bb54 100644 --- a/locales/fr.yml +++ b/locales/fr.yml @@ -13,7 +13,6 @@ fronde: help: Alias pour l'argument -h. options: cmd_title: Options - path: Chemin vers le nouveau fichier. directory: Place le nouveau fichier org dans un dossier à ce nom. help: Affiche l'aide pour une commande et quitte. version: Affiche la version de Fronde et quitte. diff --git a/spec/fronde/utils_spec.rb b/spec/fronde/utils_spec.rb index bf78915..c7a6def 100644 --- a/spec/fronde/utils_spec.rb +++ b/spec/fronde/utils_spec.rb @@ -29,7 +29,6 @@ describe Fronde::Utils do " -aAUTHOR, --author AUTHOR \n", " -h, --help Display help for a command and exit.\n", " -lLOCALE, --lang LOCALE \n", - " -pPATH, --path PATH Path to the new file.\n", " -tTITLE, --title TITLE \n", ' -v, --verbose ' ].join |