emacs2nix icon indicating copy to clipboard operation
emacs2nix copied to clipboard

emacs2nix --help is unclear

Open DamienCassou opened this issue 9 years ago • 1 comments

$ ./melpa-stable-packages.sh 
Preprocessing library emacs2nix-0.1.0.0...
In-place registering emacs2nix-0.1.0.0...
Preprocessing executable 'melpa2nix' for emacs2nix-0.1.0.0...
Running melpa2nix...
Missing: --melpa DIR (-o|--output FILE)

Usage: melpa2nix [-t|--threads N] --melpa DIR [--stable] --work DIR
                 (-o|--output FILE) [--index-only] [PACKAGE]
  Generate Nix expressions from MELPA recipes
  • what do all these options mean?
  • when I pass --stable, I get Invalid option --stable
  • same for --work

DamienCassou avatar Apr 18 '16 11:04 DamienCassou

You should be able to get the full help text by running cabal run melpa2nix -- --help. It looks like optparse-applicative only displays a short usage message when the wrong options are given, instead of showing the full help output.

ttuegel avatar Apr 18 '16 15:04 ttuegel